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:
emersion 2018-10-04 14:18:13 +02:00 committed by GitHub
commit 0d5c2f75b5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 36 additions and 3 deletions

View file

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