From: Dana Jansens Date: Tue, 26 Feb 2008 03:16:58 +0000 (-0500) Subject: show the desktop change popup before mapping/unmapping all the windows X-Git-Tag: release-3.4.7-pre1~6^2~1 X-Git-Url: http://git.openbox.org/?p=mikachu%2Fopenbox.git;a=commitdiff_plain;h=14b422f9a3f178fb8e4dea1e8e6a94c6bd2167c5 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 --- diff --git a/openbox/screen.c b/openbox/screen.c index 730b4c2..346b50c 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)