]> git.sur5r.net Git - i3/i3lock/commitdiff
Bugfix: Copy the color depth from parent (root) window instead of hardcoding to 24...
authorMichael Stapelberg <michael@stapelberg.de>
Sun, 15 Jan 2012 16:15:05 +0000 (16:15 +0000)
committerMichael Stapelberg <michael@stapelberg.de>
Sun, 15 Jan 2012 16:15:05 +0000 (16:15 +0000)
xcb.c

diff --git a/xcb.c b/xcb.c
index da2f937335d89300271a0c5937b8ac82d0e84a3e..a2477633631c09866f68043b3fad1844a34e5f79 100644 (file)
--- 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,