From 543c0e4c1f4f20b1d987c91d610e869e1f68ecf4 Mon Sep 17 00:00:00 2001 From: tcmal Date: Tue, 4 Jun 2024 21:34:55 +0100 Subject: scaffolding event handlers --- src/keys.rs | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 src/keys.rs (limited to 'src/keys.rs') diff --git a/src/keys.rs b/src/keys.rs new file mode 100644 index 0000000..6cf28a6 --- /dev/null +++ b/src/keys.rs @@ -0,0 +1,12 @@ +use crate::{error::*, WM}; +use xcb::x::{KeyPressEvent, MappingNotifyEvent}; + +impl WM<'_> { + pub(crate) fn handle_key_press(&mut self, e: KeyPressEvent) -> Result<()> { + todo!() + } + + pub(crate) fn handle_mapping_notify(&mut self, e: MappingNotifyEvent) -> Result<()> { + todo!() + } +} -- cgit v1.2.3