sync before removing all the enter events. this way it actually catches them

This commit is contained in:
Dana Jansens 2003-09-06 09:10:43 +00:00
parent a1184b2b77
commit 261d3193c5

View file

@ -430,6 +430,7 @@ void screen_set_desktop(guint num)
}
}
XSync(ob_display, FALSE);
/* focus the last focused window on the desktop, and ignore enter events
from the switch so it doesnt mess with the focus */
while (XCheckTypedEvent(ob_display, EnterNotify, &e));