From: David Hill Date: Fri, 13 Jul 2012 01:21:19 +0000 (-0400) Subject: move drain_enter_notify back to Xlib events til we are ready to do everything X-Git-Url: https://jasonwoof.com/gitweb/?a=commitdiff_plain;h=55953d52390521e9ee75450c347096c5dd5a4095;p=spectrwm.git move drain_enter_notify back to Xlib events til we are ready to do everything --- diff --git a/spectrwm.c b/spectrwm.c index e65356f..6942be9 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -2044,8 +2044,9 @@ void drain_enter_notify(void) { int i = 0; + XEvent cne; - while (xcb_poll_for_event(conn)) + while (XCheckMaskEvent(display, EnterWindowMask, &cne)) i++; DNPRINTF(SWM_D_EVENT, "drain_enter_notify: drained: %d\n", i);