mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 10:11:43 -05:00
Fix missing NULL check
could crash when windows were unmapped within a script.
This commit is contained in:
parent
0042db16f4
commit
73e402e49a
1 changed files with 1 additions and 1 deletions
2
tree.c
2
tree.c
|
@ -1637,7 +1637,7 @@ bool set_layer(monitor_t *m, desktop_t *d, node_t *n, stack_layer_t l)
|
|||
|
||||
bool set_state(monitor_t *m, desktop_t *d, node_t *n, client_state_t s)
|
||||
{
|
||||
if (n == NULL || n->client->state == s) {
|
||||
if (n == NULL || n->client == NULL || n->client->state == s) {
|
||||
return false;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue