]> git.sur5r.net Git - i3/i3/commitdiff
Bugfix: Send fake configure notify events when moving clients (Thanks Volker)
authorMichael Stapelberg <michael@stapelberg.de>
Sat, 30 May 2009 09:49:50 +0000 (11:49 +0200)
committerMichael Stapelberg <michael@stapelberg.de>
Sat, 30 May 2009 09:49:50 +0000 (11:49 +0200)
This fixes ticket #47

src/floating.c

index 7ee53638ddeb85a355920d4b394a911ef50d3e77..90064c29b8052b8ea9014cebbf352b46873af50e 100644 (file)
@@ -182,7 +182,10 @@ static void drag_window_callback(xcb_connection_t *conn, Client *client, border_
         client->rect.x = old_rect->x + (new_x - event->root_x);
         client->rect.y = old_rect->y + (new_y - event->root_y);
         reposition_client(conn, client);
-        xcb_flush(conn);
+        /* 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 */
 }
 
 /*