summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--openbox/event.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/openbox/event.c b/openbox/event.c
index 2d47fd32..b5ad2924 100644
--- a/openbox/event.c
+++ b/openbox/event.c
@@ -500,7 +500,8 @@ static void event_process(const XEvent *ec, gpointer data)
causes the window which appears to be focused to be
the one on which the actions will be executed */
keyboard_event((focus_cycle_target ?
- focus_cycle_target : client), e);
+ focus_cycle_target :
+ (client ? client : focus_client)), e);
}
}
}