glazier

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

commit ce9d2f09c1234c8f0dd06b789ab8fe572a52b45b
parent 4ccefbd711978a3510cd425d144ffc5d2ec3d7e6
Author: Willy Goiffon <dev@z3bra.org>
Date:   Tue, 22 Oct 2019 20:25:40 +0200

Limit calls to xcb_flush()

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

diff --git a/glazier.c b/glazier.c @@ -481,15 +481,14 @@ main (int argc, char *argv[]) fprintf(stderr, "Cannot redirect root window event.\n"); return -1; } - xcb_flush(conn); for (;;) { + xcb_flush(conn); ev = xcb_wait_for_event(conn); if (!ev) break; ev_callback(ev); - xcb_flush(conn); free(ev); }