input-method: setKeyboard already sends modifiers
This commit is contained in:
parent
2abab1e9c7
commit
4af77f5ffb
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user