From 134ec76508d6c30a0d1bd972255c9498adae86d8 Mon Sep 17 00:00:00 2001 From: sabetts Date: Mon, 11 Jun 2001 01:37:45 +0000 Subject: * src/actions.c (cmd_generate): return if there is no current window. * src/split.c (split_frame): empty frames can be split. * src/actions.c (initialize_default_keybindings): new bindings for "split" and "vsplit". --- src/split.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/split.c') diff --git a/src/split.c b/src/split.c index b14dca3..053ef5b 100644 --- a/src/split.c +++ b/src/split.c @@ -185,9 +185,6 @@ split_frame (rp_window_frame *frame, int way) rp_window *win; rp_window_frame *new_frame; - /* You can't split a frame unless it has a window in it. */ - if (!frame->win) return; - new_frame = xmalloc (sizeof (rp_window_frame)); /* append the new frame to the list */ @@ -236,8 +233,11 @@ split_frame (rp_window_frame *frame, int way) } /* resize the existing frame */ - maximize (frame->win); - XRaiseWindow (dpy, frame->win->w); + if (frame->win) + { + maximize (frame->win); + XRaiseWindow (dpy, frame->win->w); + } show_frame_indicator(); } -- cgit v1.2.3