From: Reginald Kennedy Date: Sun, 15 Jul 2012 09:26:47 +0000 (+0800) Subject: Add a few more xcb_flush(). X-Git-Tag: SPECTRWM_1_2_0~102 X-Git-Url: https://code.delx.au/spectrwm/commitdiff_plain/ad2fddc520a4bf43011ab8ad86fa5ad3d3988eab?ds=sidebyside Add a few more xcb_flush(). Remove whitespace. --- diff --git a/spectrwm.c b/spectrwm.c index 386899d..313b4ce 100644 --- a/spectrwm.c +++ b/spectrwm.c @@ -856,7 +856,7 @@ ewmh_autoquirk(struct ws_win *win) n = xcb_get_property_value_length(r); type = xcb_get_property_value(r); - + for (i = 0; i < n; i++) { if (type[i] == ewmh[_NET_WM_WINDOW_TYPE_NORMAL].atom) break; @@ -3716,6 +3716,7 @@ uniconify(struct swm_region *r, union arg *args) } fclose(lfile); + xcb_flush(conn); } @@ -6722,6 +6723,8 @@ buttonpress(xcb_button_press_event_t *e) buttons[i].button == e->detail && CLEANMASK(buttons[i].mask) == CLEANMASK(e->state)) buttons[i].func(win, &buttons[i].args); + + xcb_flush(conn); } void @@ -6790,6 +6793,8 @@ configurerequest(xcb_configure_request_event_t *e) } else { config_win(win, e); } + + xcb_flush(conn); } void @@ -7154,6 +7159,8 @@ clientmessage(xcb_client_message_event_t *e) stack(); } + + xcb_flush(conn); } int