diff options
author | Tobias Bengfort <tobias.bengfort@posteo.de> | 2023-01-15 16:13:01 +0100 |
---|---|---|
committer | Simon Ser <contact@emersion.fr> | 2023-01-20 17:04:26 +0100 |
commit | a7b9f6fedc8e625b9c950f43cad36cfc8fc6734c (patch) | |
tree | 6258b26a13e198c548159a5dd58e71b5de1e24ba /sway | |
parent | 6a3e265326fab11b8f68374c9f30410f647ae866 (diff) |
focus_on_window_activation: raise if floating
Diffstat (limited to 'sway')
-rw-r--r-- | sway/tree/view.c | 3 |
1 files changed, 3 insertions, 0 deletions
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) { |