From 7693682b73429b067a3328f095ecc91c08e6ac2a Mon Sep 17 00:00:00 2001 From: Tobias Bengfort Date: Sun, 15 Jan 2023 16:13:01 +0100 Subject: [PATCH] focus_on_window_activation: raise if floating (cherry picked from commit a7b9f6fedc8e625b9c950f43cad36cfc8fc6734c) --- sway/tree/view.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sway/tree/view.c b/sway/tree/view.c index 31387aaa..2894fa79 100644 --- a/sway/tree/view.c +++ b/sway/tree/view.c @@ -377,6 +377,7 @@ void view_request_activate(struct sway_view *view) { case FOWA_SMART: if (workspace_is_visible(ws)) { seat_set_focus_container(seat, view->container); + container_raise_floating(view->container); } else { view_set_urgent(view, true); } @@ -386,10 +387,12 @@ void view_request_activate(struct sway_view *view) { break; case FOWA_FOCUS: seat_set_focus_container(seat, view->container); + container_raise_floating(view->container); break; case FOWA_NONE: break; } + transaction_commit_dirty(); } void view_set_csd_from_server(struct sway_view *view, bool enabled) {