]> 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 b4d21963f073ec13255e1e5c948cc03c981e31ec..c912dc713cdd53f4d2c47882c9242cda852c0a7f 100644 (file)
@@ -325,7 +325,6 @@ void floating_resize_window(Con *con, bool proportional,
 void drag_pointer(Con *con, 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 (con != NULL)