sync before removing all the enter events. this way it actually catches them
This commit is contained in:
parent
a1184b2b77
commit
261d3193c5
1 changed files with 1 additions and 0 deletions
|
@ -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));
|
||||
|
|
Loading…
Reference in a new issue