diff options
author | rcyeske <rcyeske> | 2001-02-04 23:51:42 +0000 |
---|---|---|
committer | rcyeske <rcyeske> | 2001-02-04 23:51:42 +0000 |
commit | 5b3d636fd6e2a5c32a5575e1acaf7aec2dd922d8 (patch) | |
tree | 205dac854bc87e16bfc9167cd02d6ca70d04849b /src | |
parent | 9cbf4b6ad6c6c7f488436d9638a616808c0b3f77 (diff) | |
download | ratpoison-5b3d636fd6e2a5c32a5575e1acaf7aec2dd922d8.zip |
(prev_window): do not set active window when recursing.
(next_window): do not set active window when recursing.
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); } } |