]> git.sur5r.net Git - i3/i3/blobdiff - src/manage.c
Use 32bit visual only when needed. Thus we could drop the --enable-32bit-visual option.
[i3/i3] / src / manage.c
index 653de156c24d7b2703bc5d126a8d7c01c228187b..b0a6aafa5f176b3726b84857efa306854917a8af 100644 (file)
@@ -149,6 +149,7 @@ void manage_window(xcb_window_t window, xcb_get_window_attributes_cookie_t cooki
 
     i3Window *cwindow = scalloc(sizeof(i3Window));
     cwindow->id = window;
+    cwindow->depth = get_visual_depth(attr->visual);
 
     /* We need to grab the mouse buttons for click to focus */
     xcb_grab_button(conn, false, window, XCB_EVENT_MASK_BUTTON_PRESS,