send the correct keys when giving keyboard focus

This commit is contained in:
Squibid 2026-02-07 11:36:17 -05:00
parent 6b4e6dce6d
commit 909af734ad
Signed by: squibid
GPG key ID: BECE5684D3C4005D
2 changed files with 4 additions and 4 deletions

View file

@ -80,8 +80,8 @@ pub fn allowKeyboard(self: *LayerSurface) void {
if(keyboard_interactive == .exclusive or keyboard_interactive == .on_demand) { if(keyboard_interactive == .exclusive or keyboard_interactive == .on_demand) {
server.seat.wlr_seat.keyboardNotifyEnter( server.seat.wlr_seat.keyboardNotifyEnter(
self.wlr_layer_surface.surface, self.wlr_layer_surface.surface,
&server.seat.wlr_seat.keyboard_state.keyboard.?.keycodes, &server.seat.keyboard_group.wlr_group.keyboard.keycodes,
null &server.seat.keyboard_group.wlr_group.keyboard.modifiers
); );
} }
} }

View file

@ -139,8 +139,8 @@ pub fn focusSurface(self: *Seat, to_focus: ?FocusData) void {
if(to_focus != null) { if(to_focus != null) {
server.seat.wlr_seat.keyboardNotifyEnter( server.seat.wlr_seat.keyboardNotifyEnter(
surface.?, surface.?,
&server.seat.wlr_seat.keyboard_state.keyboard.?.keycodes, &server.seat.keyboard_group.wlr_group.keyboard.keycodes,
null &server.seat.keyboard_group.wlr_group.keyboard.modifiers
); );
if(to_focus.? != .layer_surface) { if(to_focus.? != .layer_surface) {
if(to_focus.? == .view) to_focus.?.view.focused = true; if(to_focus.? == .view) to_focus.?.view.focused = true;