JasonWoof Got questions, comments, patches, etc.? Contact Jason Woofenden
xcb_flush before polling for events
authorDavid Hill <dhill@conformal.com>
Sat, 14 Jul 2012 21:26:45 +0000 (17:26 -0400)
committerReginald Kennedy <rk@rejii.com>
Fri, 20 Jul 2012 21:59:29 +0000 (05:59 +0800)
spectrwm.c

index 5025482..a4c7ee1 100644 (file)
@@ -4266,6 +4266,7 @@ resize(struct ws_win *win, union arg *args)
                return;
        }
 
+       xcb_flush(conn);
        buttonrelease = 0;
        while ((evt = xcb_poll_for_event(conn)) && buttonrelease != 1) {
                /*
@@ -4459,6 +4460,7 @@ move(struct ws_win *win, union arg *args)
                return;
        }
 
+       xcb_flush(conn);
        buttonrelease = 0;
        while ((evt = xcb_poll_for_event(conn)) && buttonrelease != 1) {
                /*