[wiki] [sites] [dwm][swallow] Resize window after swallow || José Miguel Sánchez García

From: <git_AT_suckless.org>
Date: Sat, 30 Dec 2017 15:30:50 +0100

commit 5650e02c8940ab61d96389cf993002eeefffd907
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..5cd9a93d 100644
--- a/dwm.suckless.org/patches/swallow/dwm-swallow-20170909-ceac8c9.diff
+++ b/dwm.suckless.org/patches/swallow/dwm-swallow-20170909-ceac8c9.diff
_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:30:50 CET

This archive was generated by hypermail 2.3.0 : Sat Dec 30 2017 - 15:36:22 CET