]> git.sur5r.net Git - i3/i3/blobdiff - src/floating.c
Bugfix: use the global root variable, don’t get the first one (Thanks quaec)
[i3/i3] / src / floating.c
index 7e62eea58ff1e83c37358bffe4bfa17e0c2fec90..93a5b11c47ab5dbf58e46b2012d3872befcb32cb 100644 (file)
@@ -379,7 +379,6 @@ void floating_resize_window(xcb_connection_t *conn, Client *client,
  */
 void drag_pointer(xcb_connection_t *conn, Client *client, xcb_button_press_event_t *event,
                   xcb_window_t confine_to, border_t border, callback_t callback, void *extra) {
-        xcb_window_t root = xcb_setup_roots_iterator(xcb_get_setup(conn)).data->root;
         uint32_t new_x, new_y;
         Rect old_rect;
         if (client != NULL)