From 210ea31e39370336464fec76368aa77bf0411681 Mon Sep 17 00:00:00 2001 From: tcmal Date: Fri, 21 Jun 2024 22:13:45 +0100 Subject: documentation cleanup --- src/keys.rs | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'src/keys.rs') 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()?; -- cgit v1.2.3