From d8f752c9b46f8ef2286cddd45628b6db576b8ddf Mon Sep 17 00:00:00 2001 From: Stivvo Date: Tue, 15 Sep 2020 12:11:40 +0200 Subject: Keep client tags on unplug When unplugging a monitor, each client is moved to the same tag number as before on the new monitor --- dwl.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'dwl.c') diff --git a/dwl.c b/dwl.c index 6f2e800..bdd89fc 100644 --- a/dwl.c +++ b/dwl.c @@ -705,7 +705,7 @@ cleanupmon(struct wl_listener *listener, void *data) c->geom.width, c->geom.height, 0); } if (c->mon == m) - setmon(c, newmon, 0); + setmon(c, newmon, c->tags); } break; } -- cgit v1.2.3