summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorsabetts <sabetts>2003-02-24 07:59:32 +0000
committersabetts <sabetts>2003-02-24 07:59:32 +0000
commit6b341ac568efd980ddbbbfbb2c4960204879afdb (patch)
tree6982226603f8612edb0acb4599b06079d5a13fee
parent74feea3aa793b13a3582fc25329701a45de01b64 (diff)
downloadratpoison-6b341ac568efd980ddbbbfbb2c4960204879afdb.zip
(remove_all_splits): fix bug hiding windows not in
the current frame.
-rw-r--r--ChangeLog3
-rw-r--r--src/split.c6
2 files changed, 6 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index 4e096a4..d2ef973 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,8 @@
2003-02-23 Shawn Betts <sabetts@sfu.ca>
+ * src/split.c (remove_all_splits): fix bug hiding windows not in
+ the current frame.
+
* src/split.h (cleanup_frame): new protoype
* src/manage.c (scanwins): added better debugging output
diff --git a/src/split.c b/src/split.c
index 64d5584..e52fd94 100644
--- a/src/split.c
+++ b/src/split.c
@@ -363,13 +363,13 @@ remove_all_splits ()
{
struct list_head *tmp, *iter;
screen_info *s = &screens[rp_current_screen];
- rp_window_frame *frame = NULL;
- rp_window *win = NULL;
+ rp_window_frame *frame;
+ rp_window *win;
/* Hide all the windows not in the current frame. */
list_for_each_entry (win, &rp_mapped_window, node)
{
- if (win->frame == frame)
+ if (win->frame != s->rp_current_frame)
hide_window (win);
}