From: Michael Stapelberg Date: Sat, 6 Aug 2011 16:53:39 +0000 (+0200) Subject: Bugfix: Call tree_render() before starting the dragging when dragging a floating... X-Git-Tag: 4.0.2~53^2 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cd5e74bd8efcd34d54b96e85ef21f01c740e3370;p=i3%2Fi3 Bugfix: Call tree_render() before starting the dragging when dragging a floating window (Thanks eeemsi) Fixes #462 --- diff --git a/src/floating.c b/src/floating.c index f13476db..b394f315 100644 --- a/src/floating.c +++ b/src/floating.c @@ -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(); }