summaryrefslogtreecommitdiff
path: root/src/keys.rs
diff options
context:
space:
mode:
authortcmal <me@aria.rip>2024-06-21 22:18:08 +0100
committertcmal <me@aria.rip>2024-06-21 22:18:08 +0100
commit7639ceef0108660453f15ebacc3dd074377b5079 (patch)
tree8fc7441d4eb625af3ca4046a20b863ac8f2d0537 /src/keys.rs
parent8225beac7bb5e095858e14885ae0184764d74de9 (diff)
fix some lints
Diffstat (limited to 'src/keys.rs')
-rw-r--r--src/keys.rs4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/keys.rs b/src/keys.rs
index 51d005d..cf76982 100644
--- a/src/keys.rs
+++ b/src/keys.rs
@@ -28,7 +28,7 @@ impl WM<'_> {
/// Update our keyboard info when the mapping changes.
pub fn handle_mapping_notify(&mut self, e: &MappingNotifyEvent) -> Result<()> {
if e.request() == Mapping::Keyboard {
- grab_keys(&mut self.conn)?;
+ grab(&mut self.conn)?;
}
Ok(())
@@ -36,7 +36,7 @@ impl WM<'_> {
}
/// Refresh our keyboard info, and ensure that we get events for bound keys.
-pub fn grab_keys(conn: &mut Connection<'_>) -> Result<()> {
+pub fn grab(conn: &mut Connection<'_>) -> Result<()> {
// Refresh keyboard state
conn.refresh_keyboard_info()?;