oxwm

https://git.tonybtw.com/oxwm.git git://git.tonybtw.com/oxwm.git

fixed todos

Commit
53a436ac1094a01726530325e9e7f66e26b8fff6
Parent
8347143
Author
tonybtw <tonybtw@tonybtw.com>
Date
2025-10-03 06:48:46

Diff

diff --git a/src/keyboard/mod.rs b/src/keyboard/mod.rs
index 7c80204..7e76b4a 100644
--- a/src/keyboard/mod.rs
+++ b/src/keyboard/mod.rs
@@ -1,7 +1,5 @@
-// Re-export the public interface
 pub mod handlers;
 pub mod keycodes;
 
-// Re-export commonly used items for convenience
-pub use handlers::{Arg, KeyAction, handle_key_press, setup_keybinds}; // Add KeyAction here
+pub use handlers::{Arg, KeyAction, handle_key_press, setup_keybinds};
 pub use keycodes::*;
diff --git a/src/window_manager.rs b/src/window_manager.rs
index b53fbca..9f35c27 100644
--- a/src/window_manager.rs
+++ b/src/window_manager.rs
@@ -67,7 +67,6 @@ impl WindowManager {
 
         keyboard::setup_keybinds(&self.connection, self.root)?;
 
-        // Initial bar draw
         self.update_bar()?;
 
         loop {
@@ -174,7 +173,7 @@ impl WindowManager {
         self.selected_tags = tag_mask(tag_index);
         self.update_window_visibility()?;
         self.apply_layout()?;
-        self.update_bar()?; // Update bar to show new tag
+        self.update_bar()?;
 
         let visible = self.visible_windows();
         self.set_focus(visible.first().copied())?;
@@ -192,7 +191,7 @@ impl WindowManager {
             self.window_tags.insert(focused, mask);
             self.update_window_visibility()?;
             self.apply_layout()?;
-            self.update_bar()?; // Update bar to show occupied tags changed
+            self.update_bar()?;
         }
 
         Ok(())
@@ -284,7 +283,6 @@ impl WindowManager {
                 self.handle_key_action(action, arg)?;
             }
             Event::ButtonPress(event) => {
-                // Check if click was on the bar
                 if event.event == self.bar.window() {
                     if let Some(tag_index) = self.bar.handle_click(event.event_x) {
                         self.view_tag(tag_index)?;