From 6b341ac568efd980ddbbbfbb2c4960204879afdb Mon Sep 17 00:00:00 2001 From: sabetts Date: Mon, 24 Feb 2003 07:59:32 +0000 Subject: (remove_all_splits): fix bug hiding windows not in the current frame. --- src/split.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src') 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); } -- cgit v1.2.3