aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkus Ongyerth <ongy@ongy.net>2018-01-05 22:20:46 +0100
committerMarkus Ongyerth <ongy@ongy.net>2018-01-05 22:20:46 +0100
commit6834067ef5dba734a0493af4d806ed61705991c1 (patch)
tree81cf4180dbb188f30c293ef75533aabfeec584eb
parentc8b9c0ad0e8155a04f3192b75c5bcd64597fbc16 (diff)
sends the modifiers on wlr_seat_set_keyboard
Without this, a client will lose modifiers for one keyboard, when a key is pressed on the other. With this the client will always use the modifiers tate of the keyboard the key was pressed on.
-rw-r--r--types/wlr_seat.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/types/wlr_seat.c b/types/wlr_seat.c
index 79638822..fd76775d 100644
--- a/types/wlr_seat.c
+++ b/types/wlr_seat.c
@@ -794,6 +794,7 @@ void wlr_seat_set_keyboard(struct wlr_seat *seat,
}
seat->keyboard_state.keyboard = keyboard;
+ wlr_seat_keyboard_send_modifiers(seat);
}
void wlr_seat_keyboard_start_grab(struct wlr_seat *wlr_seat,