summaryrefslogtreecommitdiff
path: root/xcb.c
diff options
context:
space:
mode:
authorMichael Stapelberg <michael@stapelberg.de>2012-01-15 16:15:05 +0000
committerMichael Stapelberg <michael@stapelberg.de>2012-01-15 16:15:05 +0000
commit406fa5e2c43eb6ee6f91daf3f9a30e44f2310c54 (patch)
treecad6c2c189f4012c13f6b15b07b1f839be1281c6 /xcb.c
parentf368bbd0068f1389e62b605872dab84e163cf99c (diff)
Bugfix: Copy the color depth from parent (root) window instead of hardcoding to 24 (Thanks hafron)
Diffstat (limited to 'xcb.c')
-rw-r--r--xcb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/xcb.c b/xcb.c
index da2f937..a247763 100644
--- a/xcb.c
+++ b/xcb.c
@@ -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,