else if (key == get_action_key(world.keybindings, "cycle backwards"))
cycle_active_window(&win_meta, 'p');
else if (key == get_action_key(world.keybindings, "shift forwards"))
- shift_window(&win_meta, 'f');
+ shift_active_window(&win_meta, 'f');
else if (key == get_action_key(world.keybindings, "shift backwards"))
- shift_window(&win_meta, 'b');
+ shift_active_window(&win_meta, 'b');
else if (key == get_action_key(world.keybindings, "grow horizontally"))
growshrink_active_window(&win_meta, '*');
else if (key == get_action_key(world.keybindings, "shrink horizontally"))
else
win_meta->active = win_meta->chain_end; } } }
-void shift_window (struct WinMeta * win_meta, char dir) {
+void shift_active_window (struct WinMeta * win_meta, char dir) {
// Move active window forward/backward in window chain. If jumping beyond start/end, move to other chain end.
if (0 != win_meta->active && win_meta->chain_start != win_meta->chain_end && (dir == 'f' || dir == 'b')) {
int i, i_max;
void draw_all_windows (struct WinMeta *);
void resize_active_window (struct WinMeta *, int, int);
void cycle_active_window (struct WinMeta *, char);
-void shift_window (struct WinMeta *, char);
+void shift_active_window (struct WinMeta *, char);