mirror of
https://github.com/awesomeWM/awesome
synced 2024-11-17 07:47:41 +01:00
systray: Use the screen's default depth and visual
Signed-off-by: Uli Schlachter <psychon@znc.in>
This commit is contained in:
parent
f0297e5dd2
commit
e762a22f49
1 changed files with 2 additions and 9 deletions
11
systray.c
11
systray.c
|
@ -42,18 +42,11 @@ systray_init(void)
|
|||
xcb_screen_t *xscreen = globalconf.screen;
|
||||
|
||||
globalconf.systray.window = xcb_generate_id(globalconf.connection);
|
||||
xcb_create_window(globalconf.connection, globalconf.default_depth,
|
||||
xcb_create_window(globalconf.connection, xscreen->root_depth,
|
||||
globalconf.systray.window,
|
||||
xscreen->root,
|
||||
-1, -1, 1, 1, 0,
|
||||
XCB_COPY_FROM_PARENT, globalconf.visual->visual_id,
|
||||
XCB_CW_BACK_PIXEL | XCB_CW_BORDER_PIXEL | XCB_CW_COLORMAP,
|
||||
(const uint32_t [])
|
||||
{
|
||||
globalconf.colors.bg.pixel,
|
||||
globalconf.colors.bg.pixel,
|
||||
globalconf.default_cmap
|
||||
});
|
||||
XCB_COPY_FROM_PARENT, xscreen->root_visual, 0, NULL);
|
||||
}
|
||||
|
||||
|
||||
|
|
Loading…
Reference in a new issue