[hackers] [wmii] XSync() after focus on enternotify to prevent a race

From: Kris Maglione <jg_AT_suckless.org>
Date: Thu Feb 08 19:04:42 2007

changeset: 1787:8249eb5a8b8f
tag: tip
user: Kris Maglione <jg_AT_suckless.org>
date: Thu Feb 08 13:04:27 2007 -0500
summary: XSync() after focus on enternotify to prevent a race

diff -r f3987b8c24b1 -r 8249eb5a8b8f event.c
--- a/event.c Thu Feb 08 12:55:42 2007 -0500
+++ b/event.c Thu Feb 08 13:04:27 2007 -0500
@@ -194,6 +194,7 @@ enternotify(XEvent *e) {
                 if(c->sel->area->mode == Colmax)
                         c = c->sel->area->sel->client;
                 focus(c, False);
+ XSync(blz.dpy, False);
         }
         else if(ev->window == blz.root) {
                 sel_screen = True;
Received on Thu Feb 08 2007 - 19:04:42 UTC

This archive was generated by hypermail 2.2.0 : Sun Jul 13 2008 - 15:55:00 UTC