mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 02:01:42 -05:00
Revert "Try not to point to an unlinked desktop"
This reverts commit 454c492a2f
.
This commit is contained in:
parent
454c492a2f
commit
9eb7be1303
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 ? (prev == NULL ? next : prev) : m->last_desk);
|
||||
m->desk = (m->last_desk == NULL ? m->desk_head : m->last_desk);
|
||||
d->prev = d->next = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue