From 406fa5e2c43eb6ee6f91daf3f9a30e44f2310c54 Mon Sep 17 00:00:00 2001
From: Michael Stapelberg <michael@stapelberg.de>
Date: Sun, 15 Jan 2012 16:15:05 +0000
Subject: [PATCH] Bugfix: Copy the color depth from parent (root) window
 instead of hardcoding to 24 (Thanks hafron)

---
 xcb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

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,