diff options
author | tcmal <me@aria.rip> | 2024-06-21 22:13:45 +0100 |
---|---|---|
committer | tcmal <me@aria.rip> | 2024-06-21 22:13:45 +0100 |
commit | 210ea31e39370336464fec76368aa77bf0411681 (patch) | |
tree | 68288fd85ed0e3da6d4bab8b1b52465ce39ea6f4 /src/keys.rs | |
parent | 1c893ed1ff1dc26f4dcc425e756d56f752142ebd (diff) |
documentation cleanup
Diffstat (limited to 'src/keys.rs')
-rw-r--r-- | src/keys.rs | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/src/keys.rs b/src/keys.rs index 3103f41..51d005d 100644 --- a/src/keys.rs +++ b/src/keys.rs @@ -1,3 +1,5 @@ +//! Keybind-related code + use crate::{config::KEYBINDS, conn_info::Connection, error::Result, WM}; use xcb::x::{ GrabKey, GrabMode, KeyPressEvent, Mapping, MappingNotifyEvent, ModMask, UngrabKey, GRAB_ANY, @@ -34,7 +36,7 @@ impl WM<'_> { } /// Refresh our keyboard info, and ensure that we get events for bound keys. -fn grab_keys(conn: &mut Connection<'_>) -> Result<()> { +pub fn grab_keys(conn: &mut Connection<'_>) -> Result<()> { // Refresh keyboard state conn.refresh_keyboard_info()?; |