mirror of
https://github.com/MezzalunaWM/Mezzaluna.git
synced 2026-03-07 19:49:53 -05:00
send the correct keys when giving keyboard focus
This commit is contained in:
parent
6b4e6dce6d
commit
909af734ad
2 changed files with 4 additions and 4 deletions
|
|
@ -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
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue