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
This commit is contained in:
dev-null-undefined
2022-02-24 12:49:52 +01:00
committed by GitHub
parent 55592623f5
commit 5c321794f1

View File

@@ -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;