From cd2d7ef484654b63aeff65591d55a9980e64c39e Mon Sep 17 00:00:00 2001 From: Michael Stapelberg Date: Wed, 24 Aug 2011 22:54:48 +0200 Subject: [PATCH] Bugfix: Correctly keep focus when moving non-leaf windows --- src/con.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 -- 2.39.5