mirror of
https://github.com/swaywm/sway.git
synced 2024-11-26 01:41:30 +00:00
focus_on_window_activation: raise if floating
This commit is contained in:
parent
6a3e265326
commit
a7b9f6fedc
|
@ -377,6 +377,7 @@ void view_request_activate(struct sway_view *view) {
|
||||||
case FOWA_SMART:
|
case FOWA_SMART:
|
||||||
if (workspace_is_visible(ws)) {
|
if (workspace_is_visible(ws)) {
|
||||||
seat_set_focus_container(seat, view->container);
|
seat_set_focus_container(seat, view->container);
|
||||||
|
container_raise_floating(view->container);
|
||||||
} else {
|
} else {
|
||||||
view_set_urgent(view, true);
|
view_set_urgent(view, true);
|
||||||
}
|
}
|
||||||
|
@ -386,10 +387,12 @@ void view_request_activate(struct sway_view *view) {
|
||||||
break;
|
break;
|
||||||
case FOWA_FOCUS:
|
case FOWA_FOCUS:
|
||||||
seat_set_focus_container(seat, view->container);
|
seat_set_focus_container(seat, view->container);
|
||||||
|
container_raise_floating(view->container);
|
||||||
break;
|
break;
|
||||||
case FOWA_NONE:
|
case FOWA_NONE:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
transaction_commit_dirty();
|
||||||
}
|
}
|
||||||
|
|
||||||
void view_set_csd_from_server(struct sway_view *view, bool enabled) {
|
void view_set_csd_from_server(struct sway_view *view, bool enabled) {
|
||||||
|
|
Loading…
Reference in a new issue