Keep client tags on unplug

When unplugging a monitor, each client is moved to the same tag number
as before on the new monitor
This commit is contained in:
Stivvo 2020-09-15 12:11:40 +02:00
parent bece225934
commit d8f752c9b4

2
dwl.c
View File

@ -705,7 +705,7 @@ cleanupmon(struct wl_listener *listener, void *data)
c->geom.width, c->geom.height, 0); c->geom.width, c->geom.height, 0);
} }
if (c->mon == m) if (c->mon == m)
setmon(c, newmon, 0); setmon(c, newmon, c->tags);
} }
break; break;
} }