From 3c1a6384ab024d33c089219c4384633bb78daed0 Mon Sep 17 00:00:00 2001 From: Axel Wagner Date: Wed, 25 Aug 2010 18:23:33 +0200 Subject: [PATCH] Define overrride-redirect The bars should not be in dockmode, when hide-on-mod is active --- i3bar/src/xcb.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/i3bar/src/xcb.c b/i3bar/src/xcb.c index 45ed79cc..9494b389 100644 --- a/i3bar/src/xcb.c +++ b/i3bar/src/xcb.c @@ -484,11 +484,13 @@ void reconfig_windows() { printf("Creating Window for output %s\n", walk->name); walk->bar = xcb_generate_id(xcb_connection); - mask = XCB_CW_BACK_PIXEL | XCB_CW_EVENT_MASK; + mask = XCB_CW_BACK_PIXEL | XCB_CW_OVERRIDE_REDIRECT | XCB_CW_EVENT_MASK; /* Black background */ values[0] = xcb_screens->black_pixel; + /* i3 is not supposed to manage our bar-windows */ + values[1] = 1; /* The events we want to receive */ - values[1] = XCB_EVENT_MASK_EXPOSURE | + values[2] = XCB_EVENT_MASK_EXPOSURE | XCB_EVENT_MASK_BUTTON_PRESS; cookie = xcb_create_window_checked(xcb_connection, xcb_screens->root_depth, -- 2.39.5