diff options
| author | Dana Jansens <danakj@orodu.net> | 2008-01-11 16:49:55 -0500 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2008-01-11 16:53:26 -0500 |
| commit | 8a2adbb0585dfc150c4809327a2c41265174b533 (patch) | |
| tree | a63ecfa307c49fa1fcdebe84d91a251789afa179 /openbox/screen.c | |
| parent | b3764dd433f8e8511bf3045e4ea5e0e5df6b2a70 (diff) | |
make the time to remember last desktop a #define, and make it 750ms
Diffstat (limited to 'openbox/screen.c')
| -rw-r--r-- | openbox/screen.c | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/openbox/screen.c b/openbox/screen.c index e81b9590..5e0f67d4 100644 --- a/openbox/screen.c +++ b/openbox/screen.c @@ -79,6 +79,10 @@ static GSList *struts_bottom = NULL; static ObPagerPopup *desktop_popup; +/*! The number of microseconds that you need to be on a desktop before it will + replace the remembered "last desktop" */ +#define REMEMBER_LAST_DESKTOP_TIME 750000 + static gboolean replace_wm(void) { gchar *wm_sn; @@ -632,8 +636,8 @@ void screen_set_desktop(guint num, gboolean dofocus) } screen_desktop_timeout = FALSE; ob_main_loop_timeout_remove(ob_main_loop, last_desktop_func); - ob_main_loop_timeout_add(ob_main_loop, 500000, last_desktop_func, - NULL, NULL, NULL); + ob_main_loop_timeout_add(ob_main_loop, REMEMBER_LAST_DESKTOP_TIME, + last_desktop_func, NULL, NULL, NULL); ob_debug("Moving to desktop %d\n", num+1); |
