diff options
| author | dev-null-undefined <[email protected]> | 2022-02-24 12:49:52 +0100 |
|---|---|---|
| committer | GitHub <[email protected]> | 2022-02-24 12:49:52 +0100 |
| commit | 5c321794f1ffb8f395de9b58e1c165e7137df711 (patch) | |
| tree | 8c4953209856d004d269c3958c7894437acf4ad4 /patch/placemouse.c | |
| parent | 55592623f585246b106bf5c4f075122d07ec7070 (diff) | |
| download | dwm-flexipatch-5c321794f1ffb8f395de9b58e1c165e7137df711.tar.gz dwm-flexipatch-5c321794f1ffb8f395de9b58e1c165e7137df711.zip | |
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
Diffstat (limited to 'patch/placemouse.c')
| -rw-r--r-- | patch/placemouse.c | 4 |
1 files changed, 3 insertions, 1 deletions
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; |
