diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/actions.c | 12 |
1 files changed, 8 insertions, 4 deletions
diff --git a/src/actions.c b/src/actions.c index 92f207e..7ca7c3b 100644 --- a/src/actions.c +++ b/src/actions.c @@ -51,8 +51,10 @@ prev_window (void *data) { new_win = rp_window_tail; } - if (new_win->state == STATE_UNMAPPED) prev_window (new_win); - set_active_window (new_win); + if (new_win->state == STATE_UNMAPPED) + prev_window (new_win); + else + set_active_window (new_win); } } @@ -70,8 +72,10 @@ next_window (void *data) { new_win = rp_window_head; } - if (new_win->state == STATE_UNMAPPED) next_window (new_win); - set_active_window (new_win); + if (new_win->state == STATE_UNMAPPED) + next_window (new_win); + else + set_active_window (new_win); } } |