mirror of
https://github.com/mintycube/dwm.git
synced 2024-10-22 14:05:45 +02:00
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:
parent
55592623f5
commit
5c321794f1
@ -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…
Reference in New Issue
Block a user