mirror of
https://github.com/vale981/bspwm
synced 2025-03-06 10:11:43 -05:00
Don't try to merge a monitor into NULL
This commit is contained in:
parent
803392e985
commit
f3ca2aac29
1 changed files with 4 additions and 0 deletions
|
@ -189,6 +189,10 @@ void remove_monitor(monitor_t *m)
|
|||
|
||||
void merge_monitors(monitor_t *ms, monitor_t *md)
|
||||
{
|
||||
if (ms == NULL || md == NULL || ms == md) {
|
||||
return;
|
||||
}
|
||||
|
||||
PRINTF("merge %s into %s\n", ms->name, md->name);
|
||||
|
||||
desktop_t *d = ms->desk_head;
|
||||
|
|
Loading…
Add table
Reference in a new issue