glazier

the original window manipulator
Log | Files | Refs | Submodules | README | LICENSE

commit ee8ff38a213eddd2a4afb7d19769ce8327e54f85
parent 245b2638ea30240bc59eea6e35f867cfd9c5cbd4
Author: z3bra <contact@z3bra.org>
Date:   Sun, 20 Oct 2019 17:35:09 +0200

Only flush once after each callback

Diffstat:
glazier.c | 3+--
1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/glazier.c b/glazier.c @@ -193,7 +193,6 @@ cb_mouse_press(xcb_generic_event_t *ev) return 1; } - xcb_flush(conn); xcb_cursor_context_free(cx); return 0; @@ -219,7 +218,6 @@ cb_mouse_release(xcb_generic_event_t *ev) xcb_change_window_attributes(conn, e->child, XCB_CW_CURSOR, &p); xcb_ungrab_pointer(conn, XCB_CURRENT_TIME); - xcb_flush(conn); xcb_cursor_context_free(cx); cursor.x = 0; @@ -324,6 +322,7 @@ main (int argc, char *argv[]) break; ev_callback(ev); + xcb_flush(conn); free(ev); }