summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorStivvo <stivvo01@gmail.com>2020-09-15 12:11:40 +0200
committerStivvo <stivvo01@gmail.com>2020-09-15 12:28:58 +0200
commitd8f752c9b46f8ef2286cddd45628b6db576b8ddf (patch)
tree5da83bc691ca270b5c76872238c0c6c545736391
parentbece225934216f1d047ebecc5b574ed1b15886f2 (diff)
Keep client tags on unplug
When unplugging a monitor, each client is moved to the same tag number as before on the new monitor
-rw-r--r--dwl.c2
1 files changed, 1 insertions, 1 deletions
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;
}