From 5c321794f1ffb8f395de9b58e1c165e7137df711 Mon Sep 17 00:00:00 2001 From: dev-null-undefined <50732964+dev-null-undefined@users.noreply.github.com> Date: Thu, 24 Feb 2022 12:49:52 +0100 Subject: [PATCH] Fixed moving window tag issue (#237) + when moving window from monitor with different tags selected the moved window would not get the tags set properly if multiple windows are already on that monitor --- patch/placemouse.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/patch/placemouse.c b/patch/placemouse.c index 0208baf..0851e89 100644 --- a/patch/placemouse.c +++ b/patch/placemouse.c @@ -88,8 +88,10 @@ placemouse(const Arg *arg) if ((r && r != prevr) || (attachmode != prevattachmode)) { detachstack(c); detach(c); - if (c->mon != r->mon) + if (c->mon != r->mon) { arrangemon(c->mon); + c->tags = r->mon->tagset[r->mon->seltags]; + } c->mon = r->mon; r->mon->sel = r;