diff options
author | sabetts <sabetts> | 2001-05-22 16:57:58 +0000 |
---|---|---|
committer | sabetts <sabetts> | 2001-05-22 16:57:58 +0000 |
commit | abc696c450a6b3d2cba6e3da7627f698e7496a2c (patch) | |
tree | e4a441b7d96024ded03814f2edc589fccc8bdb9b | |
parent | dc8862437485021dc0892ae4fc935f1b2a4b68cd (diff) | |
download | ratpoison-abc696c450a6b3d2cba6e3da7627f698e7496a2c.zip |
* src/actions.c (cmd_generate): only generate the event if there
is a current window.
-rw-r--r-- | src/actions.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/src/actions.c b/src/actions.c index 6bf0d06..0c79a86 100644 --- a/src/actions.c +++ b/src/actions.c @@ -355,6 +355,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); |