oxwm

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

Fix tab/monocle mode not displaying the focused window

Commit
6d251315129689efa24d1eb80c26d7fce6d3c2b7
Parent
0efc6aa
Author
Zif <Zif>
Date
2025-12-16 19:57:00

Diff

diff --git a/src/window_manager.rs b/src/window_manager.rs
index 6d77f5d..0141907 100644
--- a/src/window_manager.rs
+++ b/src/window_manager.rs
@@ -794,11 +794,13 @@ impl WindowManager {
             KeyAction::FocusStack => {
                 if let Arg::Int(direction) = arg {
                     self.focusstack(*direction)?;
+                    self.restack()?;
                 }
             }
             KeyAction::MoveStack => {
                 if let Arg::Int(direction) = arg {
                     self.move_stack(*direction)?;
+                    self.restack()?;
                 }
             }
             KeyAction::Quit | KeyAction::Restart => {