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
pull/251/head
dev-null-undefined 2 years ago committed by GitHub
parent 55592623f5
commit 5c321794f1
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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

Loading…
Cancel
Save