diff options
author | Matthias Clasen <mclasen@redhat.com> | 2020-05-05 10:37:10 -0400 |
---|---|---|
committer | Matthias Clasen <mclasen@redhat.com> | 2020-05-05 10:45:47 -0400 |
commit | e33da185777fa9973895cc495e730f34a87246d2 (patch) | |
tree | 94dce3668e536f441feb9d7ccf3e8029d155c6ee | |
parent | cda1a25a5a180461a53b80eea3e2c0b6afe92852 (diff) | |
download | gtk+-e33da185777fa9973895cc495e730f34a87246d2.tar.gz |
window: Lower the visible focus timeout
Five seconds felt too long for some people in
initial feedback, so lets lower the timeout to
3 seconds.
-rw-r--r-- | gtk/gtkwindow.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/gtk/gtkwindow.c b/gtk/gtkwindow.c index fbf0a065b7..eedbabd17c 100644 --- a/gtk/gtkwindow.c +++ b/gtk/gtkwindow.c @@ -163,7 +163,10 @@ #define MENU_BAR_ACCEL GDK_KEY_F10 #define RESIZE_HANDLE_SIZE 20 #define MNEMONICS_DELAY 300 /* ms */ -#define NO_CONTENT_CHILD_NAT 200 +#define NO_CONTENT_CHILD_NAT 200 /* ms */ +#define VISIBLE_FOCUS_DURATION 3 /* s */ + + /* In case the content (excluding header bar and shadows) of the window * would be empty, either because there is no visible child widget or only an * empty container widget, we use NO_CONTENT_CHILD_NAT as natural width/height @@ -7470,7 +7473,7 @@ gtk_window_set_focus_visible (GtkWindow *window, } if (priv->focus_visible) - priv->focus_visible_timeout = g_timeout_add_seconds (5, unset_focus_visible, window); + priv->focus_visible_timeout = g_timeout_add_seconds (VISIBLE_FOCUS_DURATION, unset_focus_visible, window); if (changed) { |