summaryrefslogtreecommitdiff
path: root/src/split.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/split.c')
-rw-r--r--src/split.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/split.c b/src/split.c
index 086c645..2553bfb 100644
--- a/src/split.c
+++ b/src/split.c
@@ -66,8 +66,10 @@ cleanup_frame (rp_frame *frame)
{
rp_window *last_win;
rp_window *win;
+ rp_screen *screen;
+ screen = frames_screen(frame);
- win = find_window_other ();
+ win = find_window_other (screen);
if (win == NULL)
{
set_frames_window (frame, NULL);