reapply floatrules on tagmon
ci/woodpecker/tag/woodpecker Pipeline failed Details

This commit is contained in:
Luca Bilke 2024-02-28 01:29:50 +01:00
parent b60dc47295
commit d03a318eab
No known key found for this signature in database
GPG Key ID: AD6630D0A1E650AC
1 changed files with 27 additions and 0 deletions

View File

@ -0,0 +1,27 @@
diff --git a/dwm.c b/dwm.c
index 060614e..a61bfab 100644
--- a/dwm.c
+++ b/dwm.c
@@ -1937,7 +1937,8 @@ sendmon(Client *c, Monitor *m)
c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */
attachx(c);
attachstack(c);
- arrange(m);
+ if (!c->isfloating)
+ arrange(m);
if (hadfocus) {
focus(c);
restack(m);
@@ -2303,8 +2304,11 @@ tagmon(const Arg *arg)
c->isfullscreen = 1;
resizeclient(c, c->mon->mx, c->mon->my, c->mon->mw, c->mon->mh);
XRaiseWindow(dpy, c->win);
- } else
+ } else {
sendmon(c, dest);
+ applyrules(c);
+ XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
+ }
}
void