|
|
@@ -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)?; |