libwm

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

commit 6feb73742a86509543be40d95e611c0a459f526c
parent d9e5eeb099b33941fec3c257e5051cd5ce03da53
Author: Willy Goiffon <dev@z3bra.org>
Date:   Mon, 28 Oct 2019 19:13:14 +0100

Revert wm_restack() API change

Diffstat:
libwm.c | 10++--------
wm.h | 2+-
2 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/libwm.c b/libwm.c @@ -417,15 +417,9 @@ wm_resize(xcb_window_t wid, int mode, int w, int h) } int -wm_restack(xcb_window_t wid, uint32_t mode, xcb_window_t sibling) +wm_restack(xcb_window_t wid, uint32_t mode) { - uint32_t r = 0, mask = 0, values[2]; - if (sibling) { - mask |= XCB_CONFIG_WINDOW_SIBLING; - values[r++] = sibling; - } - mask |= XCB_CONFIG_WINDOW_STACK_MODE; - values[r++] = mode; + uint32_t values[1]; xcb_configure_window(conn, wid, XCB_CONFIG_WINDOW_STACK_MODE, values); return 0; } diff --git a/wm.h b/wm.h @@ -211,7 +211,7 @@ int wm_remap(xcb_window_t wid, int mode); * XCB_STACK_MODE_BELOW * XCB_STACK_MODE_OPPOSITE */ -int wm_restack(xcb_window_t wid, uint32_t mode, xcb_window_t sibling); +int wm_restack(xcb_window_t wid, uint32_t mode); /* * Register the given event(s) on the window.