Bugfix: Copy the color depth from parent (root) window instead of hardcoding to 24 (Thanks hafron)

pull/1/head
Michael Stapelberg 2012-01-15 16:15:05 +00:00
parent f368bbd006
commit 406fa5e2c4
1 changed files with 1 additions and 1 deletions

2
xcb.c
View File

@ -122,7 +122,7 @@ xcb_window_t open_fullscreen_window(xcb_connection_t *conn, xcb_screen_t *scr, c
XCB_EVENT_MASK_STRUCTURE_NOTIFY;
xcb_create_window(conn,
24,
XCB_COPY_FROM_PARENT,
win, /* the window id */
scr->root, /* parent == root */
0, 0,