tChange wm_reg_event() return values - libwm - X windows manipulation library
 (HTM) git clone git://z3bra.org/libwm
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit c92ee4ce0527c1983e6fef40fc43a43fde832f24
 (DIR) parent 65e44403ff65e1c15b76b7be8c20021475d07c1c
 (HTM) Author: Willy Goiffon <dev@z3bra.org>
       Date:   Tue, 22 Oct 2019 20:22:22 +0200
       
       Change wm_reg_event() return values
       
       All other functions return 1 when there's no error...
       
       We were weird.
       
       Diffstat:
         M libwm.c                             |       4 ++--
       
       1 file changed, 2 insertions(+), 2 deletions(-)
       ---
 (DIR) diff --git a/libwm.c b/libwm.c
       t@@ -406,9 +406,9 @@ wm_reg_event(xcb_window_t wid, uint32_t mask)
                c = xcb_change_window_attributes_checked(conn, wid, XCB_CW_EVENT_MASK, val);
                e = xcb_request_check(conn, c);
                if (!e)
       -                return 0;
       +                return 1;
        
                free(e);
        
       -        return 1;
       +        return 0;
        }