aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Ankarström <john@ankarstrom.se>2021-07-26 18:37:55 +0200
committerJohn Ankarström <john@ankarstrom.se>2021-07-26 18:37:55 +0200
commitb9f4874b77aa55fcc956e10b75a3616fb60d31d3 (patch)
tree6257e1e5bea908e43153432d966f834e084ad9eb
parent48122df00c55d314fe59eb2d5c32dad8455696ca (diff)
downloadjwm-b9f4874b77aa55fcc956e10b75a3616fb60d31d3.tar.gz
Fix crash when hovering over taskless taskbar
This bug was introduced in bc236b7fbc4a2603dacb682926df64e2a70c48f1.
-rw-r--r--src/taskbar.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/taskbar.c b/src/taskbar.c
index c75911e..088b420 100644
--- a/src/taskbar.c
+++ b/src/taskbar.c
@@ -496,7 +496,9 @@ SignalTaskbar(const TimeType *now, int x, int y)
ShowPopup(x, y, np->client->name);
}
} else {
- FocusClient(np->client);
+ if(np) {
+ FocusClient(np->client);
+ }
}
}
}