tony / oxwm

fixed todos Browse files
tonybtw committed 2025-10-03 parent 8347143 commit 53a436ac1094a01726530325e9e7f66e26b8fff6
Showing 2 changed files with 3 additions and 7 deletions. UnifiedSplit
+1 −3 src/keyboard/mod.rs
@@ -1,7 +1,5 @@
1 -// Re-export the public interface
2 1 pub mod handlers;
3 2 pub mod keycodes;
4 3
5 -// Re-export commonly used items for convenience
6 -pub use handlers::{Arg, KeyAction, handle_key_press, setup_keybinds}; // Add KeyAction here
4 +pub use handlers::{Arg, KeyAction, handle_key_press, setup_keybinds};
7 5 pub use keycodes::*;
+2 −4 src/window_manager.rs
@@ -67,7 +67,6 @@ impl WindowManager {
67 67
68 68 keyboard::setup_keybinds(&self.connection, self.root)?;
69 69
70 - // Initial bar draw
71 70 self.update_bar()?;
72 71
73 72 loop {
@@ -174,7 +173,7 @@ impl WindowManager {
174 173 self.selected_tags = tag_mask(tag_index);
175 174 self.update_window_visibility()?;
176 175 self.apply_layout()?;
177 - self.update_bar()?; // Update bar to show new tag
176 + self.update_bar()?;
178 177
179 178 let visible = self.visible_windows();
180 179 self.set_focus(visible.first().copied())?;
@@ -192,7 +191,7 @@ impl WindowManager {
192 191 self.window_tags.insert(focused, mask);
193 192 self.update_window_visibility()?;
194 193 self.apply_layout()?;
195 - self.update_bar()?; // Update bar to show occupied tags changed
194 + self.update_bar()?;
196 195 }
197 196
198 197 Ok(())
@@ -284,7 +283,6 @@ impl WindowManager {
284 283 self.handle_key_action(action, arg)?;
285 284 }
286 285 Event::ButtonPress(event) => {
287 - // Check if click was on the bar
288 286 if event.event == self.bar.window() {
289 287 if let Some(tag_index) = self.bar.handle_click(event.event_x) {
290 288 self.view_tag(tag_index)?;