focus_on_window_activation: raise if floating

(cherry picked from commit a7b9f6fedc)
This commit is contained in:
Tobias Bengfort 2023-01-15 16:13:01 +01:00 committed by Simon Ser
parent 3696060549
commit 7693682b73
1 changed files with 3 additions and 0 deletions

View File

@ -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) {