From 143622d2d797f820fea73a175fd867d0d17c9dbf Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Mon, 31 May 2010 23:01:08 +0200 Subject: [PATCH] Reposition floating windows while dragging --- src/floating.c | 9 ++++----- 1 file changed, 4 insertions(+), 5 deletions(-) diff --git a/src/floating.c b/src/floating.c index 416873e5..b82d5f17 100644 --- a/src/floating.c +++ b/src/floating.c @@ -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); } /* -- 2.39.5