summaryrefslogtreecommitdiff
path: root/src/actions.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/actions.c')
-rw-r--r--src/actions.c2
1 files changed, 2 insertions, 0 deletions
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);