mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 10:11:43 -05:00
Try not to point to an unlinked desktop
This commit is contained in:
parent
dde8f7f07b
commit
454c492a2f
1 changed files with 1 additions and 1 deletions
2
types.c
2
types.c
|
@ -173,7 +173,7 @@ void unlink_desktop(monitor_t *m, desktop_t *d)
|
|||
if (m->last_desk == d)
|
||||
m->last_desk = NULL;
|
||||
if (m->desk == d)
|
||||
m->desk = (m->last_desk == NULL ? m->desk_head : m->last_desk);
|
||||
m->desk = (m->last_desk == NULL ? (prev == NULL ? next : prev) : m->last_desk);
|
||||
d->prev = d->next = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue