diff options
author | emersion <contact@emersion.fr> | 2018-10-04 14:18:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-10-04 14:18:13 +0200 |
commit | 0d5c2f75b58aecbfa539dcb345c64be4bfe184bf (patch) | |
tree | e9bb6e6d7ee7ca5abf696af42ab27bc7735c8556 /sway/input | |
parent | Merge pull request #2761 from RyanDwyer/seat-op-ignore-buttons (diff) | |
parent | Give focus to another swaylock surface when output is disconnected (diff) | |
download | sway-0d5c2f75b58aecbfa539dcb345c64be4bfe184bf.tar.gz sway-0d5c2f75b58aecbfa539dcb345c64be4bfe184bf.tar.zst sway-0d5c2f75b58aecbfa539dcb345c64be4bfe184bf.zip |
Merge pull request #2760 from RyanDwyer/swaylock-handle-output-disconnect
Give focus to another swaylock surface when output is disconnected
Diffstat (limited to 'sway/input')
-rw-r--r-- | sway/input/seat.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 15c56a43..415f85ac 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c | |||
@@ -800,9 +800,6 @@ void seat_set_focus_workspace(struct sway_seat *seat, | |||
800 | 800 | ||
801 | void seat_set_focus_surface(struct sway_seat *seat, | 801 | void seat_set_focus_surface(struct sway_seat *seat, |
802 | struct wlr_surface *surface, bool unfocus) { | 802 | struct wlr_surface *surface, bool unfocus) { |
803 | if (seat->focused_layer != NULL) { | ||
804 | return; | ||
805 | } | ||
806 | if (seat->has_focus && unfocus) { | 803 | if (seat->has_focus && unfocus) { |
807 | struct sway_node *focus = seat_get_focus(seat); | 804 | struct sway_node *focus = seat_get_focus(seat); |
808 | seat_send_unfocus(focus, seat); | 805 | seat_send_unfocus(focus, seat); |