summaryrefslogtreecommitdiff
path: root/src/keys.rs
diff options
context:
space:
mode:
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()?;