refactor(wayland/seat): boolean for keypress instead of u32

This commit is contained in:
Nova
2023-09-08 20:23:40 -04:00
parent 558fb1aa4e
commit f78da4b198
2 changed files with 13 additions and 12 deletions

View File

@@ -1016,7 +1016,7 @@ impl Backend for XDGBackend {
&surface,
KeyboardEvent::Key {
key: key.abs() as u32,
state: if key < 0 { 1 } else { 0 },
state: key < 0,
},
);
}