]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Call tree_render() before starting the dragging when dragging a floating...
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 6 Aug 2011 16:53:39 +0000 (18:53 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 6 Aug 2011 16:53:39 +0000 (18:53 +0200)
Fixes #462

src/floating.c

index f13476dbb88da7f67a276457776149166d1fc2eb..b394f3156780cc0fa0c22dcf543ffe86f9c376aa 100644 (file)
@@ -297,6 +297,11 @@ DRAGGING_CB(drag_window_callback) {
 void floating_drag_window(Con *con, xcb_button_press_event_t *event) {
     DLOG("floating_drag_window\n");
 
+    /* Push changes before dragging, so that the window gets raised now and not
+     * after the user releases the mouse button */
+    tree_render();
+
+    /* Drag the window */
     drag_pointer(con, event, XCB_NONE, BORDER_TOP /* irrelevant */, drag_window_callback, event);
     tree_render();
 }