git.lucas.co / cce-compositor
Wayland compositor (wlroots)
git clone https://git.lucas.co/cce-compositor.git

commit2fcefde897040452c959daebe71d072623267e9a
parentfd82ef82ea
authorpraschke <[email protected]>
date2023-12-05 22:29
input-method: setKeyboard already sends modifiers

 river/InputRelay.zig | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/river/InputRelay.zig b/river/InputRelay.zig
index 8544332..59ae8bf 100644
--- a/river/InputRelay.zig
+++ b/river/InputRelay.zig
@@ -110,10 +110,8 @@ fn handleInputMethodGrabKeyboard(
 ) void {
     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);
-    // 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);
 }