X-Git-Url: https://jasonwoof.com/gitweb/?a=blobdiff_plain;f=spectrwm.c;h=313b4ce4eebcbaec43583022bea2d4640f263f4f;hb=ad2fddc520a4bf43011ab8ad86fa5ad3d3988eab;hp=15187b3505649e40be9973d92d8ba3cde826ef27;hpb=a0b5fd0279684bedd34f240174907cbe02d53517;p=spectrwm.git diff --git a/spectrwm.c b/spectrwm.c index 15187b3..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 @@ -6936,6 +6941,8 @@ enternotify(xcb_enter_notify_event_t *e) } focus_magic(win); + + xcb_flush(conn); } /* lets us use one switch statement for arbitrary mode/detail combinations */ @@ -7152,6 +7159,8 @@ clientmessage(xcb_client_message_event_t *e) stack(); } + + xcb_flush(conn); } int @@ -7646,10 +7655,8 @@ main(int argc, char *argv[]) int xfd, i, num_screens; struct sigaction sact; xcb_generic_event_t *evt; -#if 0 struct timeval tv; fd_set rd; -#endif time_started = time(NULL); @@ -7818,7 +7825,6 @@ noconfig: continue; } -#if 0 FD_ZERO(&rd); FD_SET(xfd, &rd); tv.tv_sec = 1; @@ -7826,7 +7832,6 @@ noconfig: if (select(xfd + 1, &rd, NULL, NULL, &tv) == -1) if (errno != EINTR) DNPRINTF(SWM_D_MISC, "select failed"); -#endif if (restart_wm == 1) restart(NULL, NULL); if (search_resp == 1)