summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authordev-null-undefined <[email protected]>2022-02-24 12:49:52 +0100
committerGitHub <[email protected]>2022-02-24 12:49:52 +0100
commit5c321794f1ffb8f395de9b58e1c165e7137df711 (patch)
tree8c4953209856d004d269c3958c7894437acf4ad4
parent55592623f585246b106bf5c4f075122d07ec7070 (diff)
downloaddwm-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
-rw-r--r--patch/placemouse.c4
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;