aboutsummaryrefslogtreecommitdiffstats
path: root/sway/input/seat.c
diff options
context:
space:
mode:
authorLibravatar Tudor Brindus <me@tbrindus.ca>2020-06-19 12:23:23 -0400
committerLibravatar Simon Ser <contact@emersion.fr>2020-06-19 18:46:01 +0200
commit2270b4c21300338b8819b9a45b418fa13f6f74c6 (patch)
tree89e0b590eab36e967345a491385ea13bb8a554f0 /sway/input/seat.c
parentinput: disable events for map_to_output devices when output not present (diff)
downloadsway-2270b4c21300338b8819b9a45b418fa13f6f74c6.tar.gz
sway-2270b4c21300338b8819b9a45b418fa13f6f74c6.tar.zst
sway-2270b4c21300338b8819b9a45b418fa13f6f74c6.zip
input/seat: don't notify keyboard grabs with NULL surface on shutdown
Fixes #5469, a minor regression introduced in #5368.
Diffstat (limited to 'sway/input/seat.c')
-rw-r--r--sway/input/seat.c8
1 files changed, 7 insertions, 1 deletions
diff --git a/sway/input/seat.c b/sway/input/seat.c
index 1be8d552..aa56394a 100644
--- a/sway/input/seat.c
+++ b/sway/input/seat.c
@@ -1179,7 +1179,13 @@ void seat_set_focus_surface(struct sway_seat *seat,
1179 seat_send_unfocus(focus, seat); 1179 seat_send_unfocus(focus, seat);
1180 seat->has_focus = false; 1180 seat->has_focus = false;
1181 } 1181 }
1182 seat_keyboard_notify_enter(seat, surface); 1182
1183 if (surface) {
1184 seat_keyboard_notify_enter(seat, surface);
1185 } else {
1186 wlr_seat_keyboard_notify_clear_focus(seat->wlr_seat);
1187 }
1188
1183 seat_tablet_pads_notify_enter(seat, surface); 1189 seat_tablet_pads_notify_enter(seat, surface);
1184} 1190}
1185 1191