From: Michael Stapelberg Date: Wed, 24 Aug 2011 20:54:48 +0000 (+0200) Subject: Bugfix: Correctly keep focus when moving non-leaf windows X-Git-Tag: 4.0.2~25^2~1 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=cd2d7ef484654b63aeff65591d55a9980e64c39e;p=i3%2Fi3 Bugfix: Correctly keep focus when moving non-leaf windows --- diff --git a/src/con.c b/src/con.c index a67fa2c3..497cb1d3 100644 --- a/src/con.c +++ b/src/con.c @@ -623,7 +623,7 @@ void con_move_to_workspace(Con *con, Con *workspace) { /* 7: focus the con on the target workspace (the X focus is only updated by * calling tree_render(), so for the "real" focus this is a no-op). */ - con_focus(con); + con_focus(con_descend_focused(con)); /* 8: when moving to a visible workspace on a different output, we keep the * con focused. Otherwise, we leave the focus on the current workspace as we