[wiki] [sites] [dwm][swallow] Resize window after swallow || José Miguel Sánchez García
commit ac47b5e382c93834bda7ac4fa76d2c66b5f56c16
Author: José Miguel Sánchez García <soy.jmi2k_AT_gmail.com>
Date: Sat Dec 30 14:21:05 2017 +0000
[dwm][swallow] Resize window after swallow
Fixes the window having the wrong dimensions after swallowing until moved or
resized manually.
diff --git a/dwm.suckless.org/patches/swallow/dwm-swallow-20160717-56a31dc.diff b/dwm.suckless.org/patches/swallow/dwm-swallow-20160717-56a31dc.diff
index db9e06c0..b62064b2 100644
--- a/dwm.suckless.org/patches/swallow/dwm-swallow-20160717-56a31dc.diff
+++ b/dwm.suckless.org/patches/swallow/dwm-swallow-20160717-56a31dc.diff
_AT_@ -115,7 +115,7 @@ index b2bc9bd..528df2f 100644
c->isfloating = r->isfloating;
c->tags |= r->tags;
for (m = mons; m && m->num != r->monitor; m = m->next);
-_AT_@ -415,6 +429,46 @@ attachstack(Client *c)
+_AT_@ -415,6 +429,47 @@ attachstack(Client *c)
}
void
_AT_@ -138,6 +138,7 @@ index b2bc9bd..528df2f 100644
+ c->win = w;
+ updatetitle(p);
+ arrange(p->mon);
++ XMoveResizeWindow(dpy, p->win, p->x, p->y, p->w, p->h);
+ configure(p);
+ updateclientlist();
+}
diff --git a/dwm.suckless.org/patches/swallow/dwm-swallow-20170909-ceac8c9.diff b/dwm.suckless.org/patches/swallow/dwm-swallow-20170909-ceac8c9.diff
index 65aa2b2b..cc5fa84e 100644
--- a/dwm.suckless.org/patches/swallow/dwm-swallow-20170909-ceac8c9.diff
+++ b/dwm.suckless.org/patches/swallow/dwm-swallow-20170909-ceac8c9.diff
_AT_@ -6,8 +6,8 @@ Subject: [PATCH] Apply swallow patch.
---
config.def.h | 7 ++-
config.mk | 2 +-
- dwm.c | 189 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
- 3 files changed, 189 insertions(+), 9 deletions(-)
+ dwm.c | 190 +++++++++++++++++++++++++++++++++++++++++++++++++++++++++--
+ 3 files changed, 190 insertions(+), 9 deletions(-)
diff --git a/config.def.h b/config.def.h
index a9ac303..2d26a23 100644
_AT_@ -106,7 +106,7 @@ index a5ce993..20b635b 100644
c->isfloating = r->isfloating;
c->tags |= r->tags;
for (m = mons; m && m->num != r->monitor; m = m->next);
-_AT_@ -414,6 +430,46 @@ attachstack(Client *c)
+_AT_@ -414,6 +430,47 @@ attachstack(Client *c)
c->mon->stack = c;
}
_AT_@ -130,6 +130,7 @@ index a5ce993..20b635b 100644
+ c->win = w;
+ updatetitle(p);
+ arrange(p->mon);
++ XMoveResizeWindow(dpy, p->win, p->x, p->y, p->w, p->h);
+ configure(p);
+ updateclientlist();
+}
diff --git a/dwm.suckless.org/patches/swallow/dwm-swallow-6.1.diff b/dwm.suckless.org/patches/swallow/dwm-swallow-6.1.diff
index 33edfb7d..7c3001fb 100644
--- a/dwm.suckless.org/patches/swallow/dwm-swallow-6.1.diff
+++ b/dwm.suckless.org/patches/swallow/dwm-swallow-6.1.diff
_AT_@ -115,7 +115,7 @@ index 0362114..566491a 100644
c->isfloating = r->isfloating;
c->tags |= r->tags;
for (m = mons; m && m->num != r->monitor; m = m->next);
-_AT_@ -413,6 +427,46 @@ attachstack(Client *c)
+_AT_@ -413,6 +427,47 @@ attachstack(Client *c)
}
void
_AT_@ -138,6 +138,7 @@ index 0362114..566491a 100644
+ c->win = w;
+ updatetitle(p);
+ arrange(p->mon);
++ XMoveResizeWindow(dpy, p->win, p->x, p->y, p->w, p->h);
+ configure(p);
+ updateclientlist();
+}
Received on Sat Dec 30 2017 - 15:46:13 CET
This archive was generated by hypermail 2.3.0
: Sat Dec 30 2017 - 15:48:21 CET