]> Dogcows Code - chaz/openbox/commitdiff
use event_ignore_queued_enters
authorDana Jansens <danakj@orodu.net>
Sun, 22 Apr 2007 22:21:32 +0000 (22:21 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 22 Apr 2007 22:21:32 +0000 (22:21 +0000)
openbox/focus.c

index f794e4666c245ea1a8858c6bd28d2c2d0695cc3f..31fa0ef9b320d40cfe13f3d1d85175191bbad011 100644 (file)
@@ -336,8 +336,7 @@ void focus_cycle_draw_indicator()
         XUnmapWindow(ob_display, focus_indicator.bottom.win);
 
         /* kill enter events cause by this unmapping */
-        XSync(ob_display, FALSE);
-        while (XCheckTypedEvent(ob_display, EnterNotify, &e));
+        event_ignore_queued_enters();
     } else {
         /*
           if (focus_cycle_target)
This page took 0.029149 seconds and 4 git commands to generate.