diff options
author | emersion <contact@emersion.fr> | 2018-06-05 08:44:53 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-06-05 08:44:53 +0100 |
commit | 6b9ffbad20995d322748bebc4ea43cbffb070381 (patch) | |
tree | e8c45627ec1d38d88349160aa04d53f4e4432525 /sway/input/seat.c | |
parent | e410757fe8f1eaa1883a60ac93b96f35d36ae938 (diff) | |
parent | 1206a6097711556b22418db5043dc7c22d8b9a3e (diff) | |
download | sway-6b9ffbad20995d322748bebc4ea43cbffb070381.tar.xz |
Merge pull request #2103 from RyanDwyer/focus-fixes
Focus fixes
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r-- | sway/input/seat.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c index 0e539b70..071ef020 100644 --- a/sway/input/seat.c +++ b/sway/input/seat.c @@ -658,7 +658,8 @@ void seat_set_focus_layer(struct sway_seat *seat, struct wlr_layer_surface *layer) { if (!layer && seat->focused_layer) { seat->focused_layer = NULL; - struct sway_container *previous = seat_get_focus(seat); + struct sway_container *previous = + seat_get_focus_inactive(seat, &root_container); if (previous) { wlr_log(L_DEBUG, "Returning focus to %p %s '%s'", previous, container_type_to_str(previous->type), previous->name); |