From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Sat, 18 May 2024 17:01:02 +0000 (+0200) Subject: SendToDesktop: ensure we focus the topmost view with follow=no X-Git-Url: https://git.mdlowis.com/?a=commitdiff_plain;h=208f383c66ecd173796ebd0afbd63b7dc9295a10;p=proto%2Flabwc.git SendToDesktop: ensure we focus the topmost view with follow=no Fixes: #1800 --- diff --git a/src/action.c b/src/action.c index 68086bf9..78c71d98 100644 --- a/src/action.c +++ b/src/action.c @@ -918,6 +918,11 @@ actions_run(struct view *activator, struct server *server, if (action->type == ACTION_TYPE_SEND_TO_DESKTOP) { view_move_to_workspace(view, target); follow = action_get_bool(action, "follow", true); + + /* Ensure that the focus is not on another desktop */ + if (!follow && server->active_view == view) { + desktop_focus_topmost_view(server); + } } if (follow) { workspaces_switch_to(target,