]> git.sur5r.net Git - i3/i3/blobdiff - src/handlers.c
Bugfix: use the global root variable, don’t get the first one (Thanks quaec)
[i3/i3] / src / handlers.c
index 12e81f71a598822f82f4d6bed821f316c7f504b0..31eeced62f0ea3b8cabaf69490312f4a0dabe555 100644 (file)
@@ -458,8 +458,6 @@ int handle_screen_change(void *prophs, xcb_connection_t *conn,
  *
  */
 int handle_unmap_notify_event(void *data, xcb_connection_t *conn, xcb_unmap_notify_event_t *event) {
-        xcb_window_t root = xcb_setup_roots_iterator(xcb_get_setup(conn)).data->root;
-
         add_ignore_event(event->sequence);
 
         Client *client = table_get(&by_child, event->window);