From: Axel Wagner Date: Wed, 25 Aug 2010 16:23:33 +0000 (+0200) Subject: Define overrride-redirect X-Git-Tag: 4.0.1~7^2~72^2~5 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3c1a6384ab024d33c089219c4384633bb78daed0;p=i3%2Fi3 Define overrride-redirect The bars should not be in dockmode, when hide-on-mod is active --- 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,