| @@ -69,6 +69,7 @@ pub fn spawnTerminal(wm: *WindowManager) void { |
| 69 |
} |
69 |
} |
| 70 |
|
70 |
|
| 71 |
pub fn movestack(direction: i32, wm: *WindowManager) void { |
71 |
pub fn movestack(direction: i32, wm: *WindowManager) void { |
|
|
72 |
+ if (direction == 0) return; |
| 72 |
const monitor = wm.selected_monitor orelse return; |
73 |
const monitor = wm.selected_monitor orelse return; |
| 73 |
const current = monitor.sel orelse return; |
74 |
const current = monitor.sel orelse return; |
| 74 |
|
75 |
|
| @@ -289,6 +290,7 @@ pub fn tagClient(tag_mask: u32, wm: *WindowManager) void { |
| 289 |
} |
290 |
} |
| 290 |
|
291 |
|
| 291 |
pub fn focusstack(direction: i32, wm: *WindowManager) void { |
292 |
pub fn focusstack(direction: i32, wm: *WindowManager) void { |
|
|
293 |
+ if (direction == 0) return; |
| 292 |
const monitor = wm.selected_monitor orelse return; |
294 |
const monitor = wm.selected_monitor orelse return; |
| 293 |
const current = monitor.sel orelse return; |
295 |
const current = monitor.sel orelse return; |
| 294 |
|
296 |
|
| @@ -797,9 +799,9 @@ pub fn executeAction(action: config_mod.Action, int_arg: i32, str_arg: ?[]const |
| 797 |
} |
799 |
} |
| 798 |
} |
800 |
} |
| 799 |
}, |
801 |
}, |
| 800 |
- .focus_next => focusstack(1, wm), |
802 |
+ .focus_next => focusstack(int_arg, wm), |
| 801 |
.focus_prev => focusstack(-1, wm), |
803 |
.focus_prev => focusstack(-1, wm), |
| 802 |
- .move_next => movestack(1, wm), |
804 |
+ .move_next => movestack(int_arg, wm), |
| 803 |
.move_prev => movestack(-1, wm), |
805 |
.move_prev => movestack(-1, wm), |
| 804 |
.resize_master => setmfact(@as(f32, @floatFromInt(int_arg)) / 1000.0, wm), |
806 |
.resize_master => setmfact(@as(f32, @floatFromInt(int_arg)) / 1000.0, wm), |
| 805 |
.inc_master => incnmaster(1, wm), |
807 |
.inc_master => incnmaster(1, wm), |