]> git.sur5r.net Git - i3/i3/commitdiff
Reposition floating windows while dragging
authorMichael Stapelberg <michael@stapelberg.de>
Mon, 31 May 2010 21:01:08 +0000 (23:01 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Mon, 31 May 2010 21:01:08 +0000 (23:01 +0200)
src/floating.c

index 416873e53f6ffc452877958fdeac38f4ca2dd7cc..b82d5f17a49bf40e30011bb4f4f4b757e5e9e91e 100644 (file)
@@ -314,11 +314,10 @@ DRAGGING_CB(drag_window_callback) {
         /* Reposition the client correctly while moving */
         con->rect.x = old_rect->x + (new_x - event->root_x);
         con->rect.y = old_rect->y + (new_y - event->root_y);
-        //reposition_client(conn, con);
-        /* Because reposition_client does not send a faked configure event (only resize does),
-         * we need to initiate that on our own */
-        //fake_absolute_configure_notify(conn, client);
-        /* fake_absolute_configure_notify flushes */
+        /* TODO: don’t re-render the whole tree just because we change
+         * coordinates of a floating window */
+        tree_render();
+        x_push_changes(croot);
 }
 
 /*