From 208f383c66ecd173796ebd0afbd63b7dc9295a10 Mon Sep 17 00:00:00 2001 From: Consolatis <35009135+Consolatis@users.noreply.github.com> Date: Sat, 18 May 2024 19:01:02 +0200 Subject: [PATCH] SendToDesktop: ensure we focus the topmost view with follow=no Fixes: #1800 --- src/action.c | 5 +++++ 1 file changed, 5 insertions(+) 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,