diff options
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()?; |