summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorrcyeske <rcyeske>2001-02-04 23:51:42 +0000
committerrcyeske <rcyeske>2001-02-04 23:51:42 +0000
commit5b3d636fd6e2a5c32a5575e1acaf7aec2dd922d8 (patch)
tree205dac854bc87e16bfc9167cd02d6ca70d04849b /src
parent9cbf4b6ad6c6c7f488436d9638a616808c0b3f77 (diff)
downloadratpoison-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.c12
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);
}
}