diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/event.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/src/event.c b/src/event.c index e8a0049..0b12b82 100644 --- a/src/event.c +++ b/src/event.c @@ -362,14 +362,16 @@ void HandleKeyPress(const XKeyEvent *event) { break; case KEY_NEXT: FocusNext(); - RaiseClient(GetActiveClient()); + np = GetActiveClient(); + if (np != NULL) RaiseClient(np); break; case KEY_NEXT_STACKED: FocusNextStackedCircular(); break; case KEY_PREV: FocusPrevious(); - RaiseClient(GetActiveClient()); + np = GetActiveClient(); + if (np != NULL) RaiseClient(np); break; case KEY_PREV_STACKED: FocusPreviousStackedCircular(); |