tRemove all internal calls to xcb_flush() - libwm - X windows manipulation library
 (HTM) git clone git://z3bra.org/libwm
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit 246faeb2f14e0be097f3d7629830b469bd6bb7b8
 (DIR) parent 8af38ef59496889dc2bbbc7d43ebc888a055465b
 (HTM) 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
       tthat the library doesn't induce any latency.
       
       Diffstat:
         M libwm.c                             |       6 +-----
       
       1 file changed, 1 insertion(+), 5 deletions(-)
       ---
 (DIR) diff --git a/libwm.c b/libwm.c
       t@@ -233,7 +233,6 @@ wm_set_border(int width, int color, xcb_window_t win)
                        retval++;
                }
        
       -        xcb_flush(conn);
                return retval;
        }
        
       t@@ -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;
        }
        
       t@@ -338,7 +336,7 @@ wm_remap(xcb_window_t wid, int mode)
                                xcb_map_window(conn, wid);
                        break;
                }
       -        xcb_flush(conn);
       +
                return 1;
        }
        
       t@@ -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;
        }
        
       t@@ -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;
        }