This commit is contained in:
Harrison DiAmbrosio 2025-10-19 19:09:38 -04:00
parent 46b21391c0
commit ddc9a05f39
6 changed files with 111 additions and 53 deletions

View file

@ -91,7 +91,7 @@ fn handleKeyMap(_: *wl.Listener(*wlr.Keyboard), _: *wlr.Keyboard) void {
pub fn handleDestroy(listener: *wl.Listener(*wlr.InputDevice), _: *wlr.InputDevice) void {
const keyboard: *Keyboard = @fieldParentPtr("destroy", listener);
std.log.debug("removing keyboard: {s}", .{keyboard.*.device.*.name orelse "(null)"});
std.log.debug("removing keyboard: {s}", .{keyboard.device.name orelse "(null)"});
keyboard.link.remove();