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/actions.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/actions.c') diff --git a/src/actions.c b/src/actions.c index de2a2c9..3e30693 100644 --- a/src/actions.c +++ b/src/actions.c @@ -363,6 +363,8 @@ cmd_generate (void *data) XEvent ev1, ev; ev = rp_current_event; + if (current_window() == NULL) return; + PRINT_DEBUG ("type==%d\n", ev.xkey.type); PRINT_DEBUG ("serial==%ld\n", ev.xkey.serial); PRINT_DEBUG ("send_event==%d\n", ev.xkey.send_event); -- cgit v1.2.3