summaryrefslogtreecommitdiff
path: root/openbox/client.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-04-22 16:48:35 +0000
committerDana Jansens <danakj@orodu.net>2007-04-22 16:48:35 +0000
commit037654f3f89dcf07aba1b49b9f03a8187adeaa73 (patch)
tree630e40b79b86ff29dcefac70e5e0277754bbcd97 /openbox/client.c
parentd6e49acf0ff267b3ee9a9f1e0102028734803747 (diff)
use ignore enters instead of removing them from the queue
Diffstat (limited to 'openbox/client.c')
-rw-r--r--openbox/client.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/openbox/client.c b/openbox/client.c
index 86acafb1..a65e7400 100644
--- a/openbox/client.c
+++ b/openbox/client.c
@@ -512,11 +512,9 @@ void client_unmanage(ObClient *self)
XSync(ob_display, FALSE);
if (focus_client == self) {
- XEvent e;
-
- /* focus the last focused window on the desktop, and ignore enter
- events from the unmap so it doesnt mess with the focus */
- while (XCheckTypedEvent(ob_display, EnterNotify, &e));
+ /* ignore enter events from the unmap so it doesnt mess with the focus
+ */
+ event_ignore_queued_enters();
}