More stuff

This commit is contained in:
Kenny Levinsen
2023-02-02 23:52:59 +01:00
parent 7593cd48a4
commit b49b9e9764
26 changed files with 2022 additions and 803 deletions
+5 -2
View File
@@ -12,8 +12,10 @@
//! calloop event loop. Not doing so will prevent key repetition to work
//! (but the rest of the functionnality will not be affected).
use std::default::Default;
use std::os::unix::io::{AsRawFd, OwnedFd};
use std::{
default::Default,
os::unix::io::{AsRawFd, OwnedFd},
};
use wayland_client::{protocol::wl_keyboard, WEnum};
use xkbcommon::xkb;
@@ -24,6 +26,7 @@ mod state;
use self::state::KbState;
pub use self::state::ModifiersState;
#[derive(Debug)]
pub struct KeyEvent {
pub serial: u32,
pub time: u32,
+3
View File
@@ -50,6 +50,9 @@ impl ModifiersState {
}
}
// Safety: No.
unsafe impl Send for KbState {}
impl KbState {
pub(crate) fn update_modifiers(
&mut self,