tony / oxwm

Merge pull request #92 from zafkar/fix_tab_focus Browse files
Fix tab/monocle mode focus
Emzy committed 2025-12-17 parents 9d4c28f 8d7d57f commit fa421d25482d8db53e2aaa2efaa1aa15f96e8733
Showing 2 changed files with 4 additions and 2 deletions. UnifiedSplit
+2 −2 resources/test-config.lua
@@ -61,9 +61,9 @@ oxwm.bar.set_scheme_urgent(colors.red, colors.bg, colors.red)
61 61 oxwm.key.chord({
62 62 { { modkey }, "Space" },
63 63 { {}, "T" }
64 -}, oxwm.spawn("st"))
64 +}, oxwm.spawn_terminal())
65 65
66 -oxwm.key.bind({ modkey }, "Return", oxwm.spawn("st"))
66 +oxwm.key.bind({ modkey }, "Return", oxwm.spawn_terminal())
67 67 oxwm.key.bind({ modkey }, "D", oxwm.spawn({ "sh", "-c", "dmenu_run -l 10" }))
68 68 oxwm.key.bind({ modkey }, "S", oxwm.spawn({ "sh", "-c", "maim -s | xclip -selection clipboard -t image/png" }))
69 69 oxwm.key.bind({ modkey }, "Q", oxwm.client.kill())
+2 −0 src/window_manager.rs
@@ -799,11 +799,13 @@ impl WindowManager {
799 799 KeyAction::FocusStack => {
800 800 if let Arg::Int(direction) = arg {
801 801 self.focusstack(*direction)?;
802 + self.restack()?;
802 803 }
803 804 }
804 805 KeyAction::MoveStack => {
805 806 if let Arg::Int(direction) = arg {
806 807 self.move_stack(*direction)?;
808 + self.restack()?;
807 809 }
808 810 }
809 811 KeyAction::Quit | KeyAction::Restart => {