mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 02:01:42 -05:00
Better fallback for current monitor removal
This commit is contained in:
parent
e3bc2b90bd
commit
c0970551e5
1 changed files with 1 additions and 1 deletions
2
types.c
2
types.c
|
@ -86,7 +86,7 @@ void remove_monitor(monitor_t *m)
|
|||
if (last_mon == m)
|
||||
last_mon = NULL;
|
||||
if (mon == m)
|
||||
mon = (last_mon == NULL ? mon_head : last_mon);
|
||||
mon = (last_mon == NULL ? (prev == NULL ? next : prev) : last_mon);
|
||||
free(m);
|
||||
num_monitors--;
|
||||
put_status();
|
||||
|
|
Loading…
Add table
Reference in a new issue