libwm

library for X windows manipulations
git clone git://z3bra.org/libwm
Log | Files | Refs | LICENSE

commit 246faeb2f14e0be097f3d7629830b469bd6bb7b8
parent 8af38ef59496889dc2bbbc7d43ebc888a055465b
Author: Willy Goiffon <dev@z3bra.org>
Date:   Tue, 22 Oct 2019 18:04:39 +0200

Remove all internal calls to xcb_flush()

This is the responsibility of the client to flush the connection, so
that the library doesn't induce any latency.

Diffstat:
libwm.c | 6+-----
1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/libwm.c b/libwm.c @@ -233,7 +233,6 @@ wm_set_border(int width, int color, xcb_window_t win) retval++; } - xcb_flush(conn); return retval; } @@ -271,7 +270,6 @@ wm_teleport(xcb_window_t wid, int x, int y, int w, int h) values[3] = h; xcb_configure_window(conn, wid, mask, values); - xcb_flush(conn); return 1; } @@ -338,7 +336,7 @@ wm_remap(xcb_window_t wid, int mode) xcb_map_window(conn, wid); break; } - xcb_flush(conn); + return 1; } @@ -387,7 +385,6 @@ wm_restack(xcb_window_t wid, uint32_t mode) { uint32_t values[1] = { mode }; xcb_configure_window(conn, wid, XCB_CONFIG_WINDOW_STACK_MODE, values); - xcb_flush(conn); return 1; } @@ -396,7 +393,6 @@ wm_set_focus(xcb_window_t wid) { xcb_set_input_focus(conn, XCB_INPUT_FOCUS_POINTER_ROOT, wid, XCB_CURRENT_TIME); - xcb_flush(conn); return 1; }