libwm

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

commit c92ee4ce0527c1983e6fef40fc43a43fde832f24
parent 65e44403ff65e1c15b76b7be8c20021475d07c1c
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:
libwm.c | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/libwm.c b/libwm.c @@ -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; }