From: Orestis Floros Date: Sat, 9 Dec 2017 13:35:05 +0000 (+0200) Subject: floating_maybe_reassign_ws: show workspace before focusing X-Git-Tag: 4.15~30^2~2 X-Git-Url: https://git.sur5r.net/?p=i3%2Fi3;a=commitdiff_plain;h=87ed8df4fabc36bb4a5e30af4f638cc1febc4bdb floating_maybe_reassign_ws: show workspace before focusing With this change i3 will correctly switch to the focused workspace. This fixes bug with moving floating windows with 'move ' or by dragging like _NET_CURRENT_DESKTOP not getting updated or 'workspace back_and_forth' not working. Fixes #2921. --- diff --git a/src/floating.c b/src/floating.c index 14988818..e2e9d85a 100644 --- a/src/floating.c +++ b/src/floating.c @@ -449,6 +449,7 @@ bool floating_maybe_reassign_ws(Con *con) { Con *ws = TAILQ_FIRST(&(content->focus_head)); DLOG("Moving con %p / %s to workspace %p / %s\n", con, con->name, ws, ws->name); con_move_to_workspace(con, ws, false, true, false); + workspace_show(ws); con_focus(con_descend_focused(con)); return true; }