wmutils

X windows manipulation utilities
git clone git://z3bra.org/wmutils
Log | Files | Refs | LICENSE

commit bd9cebbcd2292149af8f5bc3700e50253b2c177c
parent 64efb1cbecfb2694027d556f5bf1e9167f399def
Author: dcat <dcat@iotek.org>
Date:   Sun Nov 22 03:20:06 2015

wm_set_override()

Diffstat:
 ignw.c | 12 +-----------
 1 file changed, 1 insertion(+), 11 deletions(-)

diff --git a/ignw.c b/ignw.c @@ -12,7 +12,6 @@ xcb_connection_t *conn; xcb_screen_t *scrn; static void usage(char *); -static void set_override(xcb_window_t, int); static void usage(char *name) @@ -21,15 +20,6 @@ usage(char *name) exit(1); } -static void -set_override(xcb_window_t w, int or) -{ - uint32_t mask = XCB_CW_OVERRIDE_REDIRECT; - uint32_t val[] = { or }; - - xcb_change_window_attributes(conn, w, mask, val); -} - int main(int argc, char **argv) { @@ -45,7 +35,7 @@ main(int argc, char **argv) wm_init_xcb(&conn); while (*argv) - set_override(strtoul(*argv++, NULL, 16), setflag); + wm_set_override(strtoul(*argv++, NULL, 16), setflag); xcb_flush(conn);