]> git.sur5r.net Git - i3/i3/blobdiff - src/xcb.c
Bugfix: use the global root variable, don’t get the first one (Thanks quaec)
[i3/i3] / src / xcb.c
index ee3148ed3b90437fa70a40254b05212f077ec0cd..38b1d5a848fcc36f260f9deb049d6f697beb5a7f 100644 (file)
--- a/src/xcb.c
+++ b/src/xcb.c
@@ -92,7 +92,6 @@ uint32_t get_colorpixel(xcb_connection_t *conn, char *hex) {
  */
 xcb_window_t create_window(xcb_connection_t *conn, Rect dims, uint16_t window_class, int cursor,
                            bool map, uint32_t mask, uint32_t *values) {
-        xcb_window_t root = xcb_setup_roots_iterator(xcb_get_setup(conn)).data->root;
         xcb_window_t result = xcb_generate_id(conn);
         xcb_cursor_t cursor_id = xcb_generate_id(conn);