mirror of
https://github.com/swaywm/sway.git
synced 2025-11-20 06:59:46 -05:00
Merge pull request #2760 from RyanDwyer/swaylock-handle-output-disconnect
Give focus to another swaylock surface when output is disconnected
This commit is contained in:
commit
0d5c2f75b5
2 changed files with 36 additions and 3 deletions
|
|
@ -800,9 +800,6 @@ void seat_set_focus_workspace(struct sway_seat *seat,
|
|||
|
||||
void seat_set_focus_surface(struct sway_seat *seat,
|
||||
struct wlr_surface *surface, bool unfocus) {
|
||||
if (seat->focused_layer != NULL) {
|
||||
return;
|
||||
}
|
||||
if (seat->has_focus && unfocus) {
|
||||
struct sway_node *focus = seat_get_focus(seat);
|
||||
seat_send_unfocus(focus, seat);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue