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
This commit is contained in:
parent
d9e6aa5643
commit
14b422f9a3
1 changed files with 3 additions and 3 deletions
|
@ -688,6 +688,9 @@ void screen_set_desktop(guint num, gboolean dofocus)
|
||||||
|
|
||||||
ob_debug("Moving to desktop %d\n", num+1);
|
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 enter events caused by the move */
|
||||||
ignore_start = event_start_ignore_all_enters();
|
ignore_start = event_start_ignore_all_enters();
|
||||||
|
|
||||||
|
@ -718,9 +721,6 @@ void screen_set_desktop(guint num, gboolean dofocus)
|
||||||
|
|
||||||
if (event_curtime != CurrentTime)
|
if (event_curtime != CurrentTime)
|
||||||
screen_desktop_user_time = event_curtime;
|
screen_desktop_user_time = event_curtime;
|
||||||
|
|
||||||
if (ob_state() == OB_STATE_RUNNING)
|
|
||||||
screen_show_desktop_popup(screen_desktop);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void screen_add_desktop(gboolean current)
|
void screen_add_desktop(gboolean current)
|
||||||
|
|
Loading…
Reference in a new issue