summaryrefslogtreecommitdiff
path: root/openbox/screen.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2008-02-25 22:16:58 -0500
committerDana Jansens <danakj@orodu.net>2008-02-25 22:16:58 -0500
commit14b422f9a3f178fb8e4dea1e8e6a94c6bd2167c5 (patch)
tree1e8476258a3b311e8aafd441be87580f34f09704 /openbox/screen.c
parentd9e6aa5643e74ab84fde0ddb1fcb8418ff212281 (diff)
show the desktop change popup before mapping/unmapping all the windows
this makes a big difference if the compmgr is being laggy trying to show windows
Diffstat (limited to 'openbox/screen.c')
-rw-r--r--openbox/screen.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/openbox/screen.c b/openbox/screen.c
index 730b4c24..346b50c3 100644
--- a/openbox/screen.c
+++ b/openbox/screen.c
@@ -688,6 +688,9 @@ void screen_set_desktop(guint num, gboolean dofocus)
ob_debug("Moving to desktop %d\n", num+1);
+ if (ob_state() == OB_STATE_RUNNING)
+ screen_show_desktop_popup(screen_desktop);
+
/* ignore enter events caused by the move */
ignore_start = event_start_ignore_all_enters();
@@ -718,9 +721,6 @@ void screen_set_desktop(guint num, gboolean dofocus)
if (event_curtime != CurrentTime)
screen_desktop_user_time = event_curtime;
-
- if (ob_state() == OB_STATE_RUNNING)
- screen_show_desktop_popup(screen_desktop);
}
void screen_add_desktop(gboolean current)