aboutsummaryrefslogtreecommitdiff
path: root/monsterwm.c
diff options
context:
space:
mode:
Diffstat (limited to 'monsterwm.c')
-rw-r--r--monsterwm.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/monsterwm.c b/monsterwm.c
index 5de1652..6f2c061 100644
--- a/monsterwm.c
+++ b/monsterwm.c
@@ -613,6 +613,7 @@ client* prev_client(client *c) {
/* cyclic focus the previous window
* if the window is the head, focus the last stack window */
void prev_win() {
+ if (!current || !head->next) return;
update_current(prev_client(prevfocus = current));
}