summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLibravatar Drew DeVault <sir@cmpwn.com>2018-09-05 20:39:13 -0400
committerLibravatar GitHub <noreply@github.com>2018-09-05 20:39:13 -0400
commit85e95d5825cdd24cc9a3c8efc2078c414300a8af (patch)
tree5c0c1e8399a738a27fbe3a7805af75650aa142a8
parentMerge pull request #2572 from RedSoxFan/wlr-output-disabling (diff)
parentRestore focus correctly when closing a fullscreen view (diff)
downloadsway-85e95d5825cdd24cc9a3c8efc2078c414300a8af.tar.gz
sway-85e95d5825cdd24cc9a3c8efc2078c414300a8af.tar.zst
sway-85e95d5825cdd24cc9a3c8efc2078c414300a8af.zip
Merge pull request #2580 from RyanDwyer/fix-focus-after-fullscreen
Restore focus correctly when closing a fullscreen view
-rw-r--r--sway/input/seat.c7
1 files changed, 2 insertions, 5 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 92d9d7ec..b1808793 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -168,11 +168,8 @@ static void handle_seat_node_destroy(struct wl_listener *listener, void *data) {
168 168
169 // the structure change might have caused it to move up to the top of 169 // the structure change might have caused it to move up to the top of
170 // the focus stack without sending focus notifications to the view 170 // the focus stack without sending focus notifications to the view
171 if (seat_get_focus(seat) == next_focus) { 171 seat_send_focus(next_focus, seat);
172 seat_send_focus(next_focus, seat); 172 seat_set_focus(seat, next_focus);
173 } else {
174 seat_set_focus(seat, next_focus);
175 }
176 } 173 }
177} 174}
178 175