input-method: setKeyboard already sends modifiers

This commit is contained in:
praschke 2023-12-05 22:29:16 +00:00 committed by Isaac Freund
parent 2abab1e9c7
commit 4af77f5ffb
No known key found for this signature in database
GPG Key ID: 86DED400DDFD7A11

View File

@ -110,10 +110,8 @@ fn handleInputMethodGrabKeyboard(
) void { ) void {
const self = @fieldParentPtr(Self, "grab_keyboard", listener); const self = @fieldParentPtr(Self, "grab_keyboard", listener);
const active_keyboard = self.seat.wlr_seat.getKeyboard() orelse return; const active_keyboard = self.seat.wlr_seat.getKeyboard();
keyboard_grab.setKeyboard(active_keyboard); keyboard_grab.setKeyboard(active_keyboard);
// sway says 'send modifier state to grab' but doesn't seem to do this send_modifiers
keyboard_grab.sendModifiers(&active_keyboard.modifiers);
keyboard_grab.events.destroy.add(&self.grab_keyboard_destroy); keyboard_grab.events.destroy.add(&self.grab_keyboard_destroy);
} }