commit 2dcdd0434f39c12686c9aa38ce996cfbb8c96233
Author: Britton Leo Kerin <[email protected]>
Date:   Sun Jul 17 12:28:11 2016 -0800

    Move ancient autoresize version to historical...
    
    and get rid of link to it, since it doesn't have
    a version label of any sort.

diff --git a/dwm.suckless.org/patches/autoresize.diff 
b/dwm.suckless.org/patches/autoresize.diff
deleted file mode 100644
index 6c25ae4..0000000
--- a/dwm.suckless.org/patches/autoresize.diff
+++ /dev/null
@@ -1,35 +0,0 @@
-diff -r 53d98940cb04 dwm.c
---- a/dwm.c    Fri Jun 04 11:41:16 2010 +0100
-+++ b/dwm.c    Sat Jul 03 10:31:22 2010 +0200
-@@ -88,7 +88,7 @@
-       int basew, baseh, incw, inch, maxw, maxh, minw, minh;
-       int bw, oldbw;
-       unsigned int tags;
--      Bool isfixed, isfloating, isurgent, oldstate;
-+      Bool isfixed, isfloating, isurgent, oldstate, needresize;
-       Client *next;
-       Client *snext;
-       Monitor *mon;
-@@ -591,6 +591,8 @@
-                               configure(c);
-                       if(ISVISIBLE(c))
-                               XMoveResizeWindow(dpy, c->win, c->x, c->y, 
c->w, c->h);
-+                      else
-+                              c->needresize=1;
-               }
-               else
-                       configure(c);
-@@ -1576,7 +1578,12 @@
-       if(!c)
-               return;
-       if(ISVISIBLE(c)) { /* show clients top down */
--              XMoveWindow(dpy, c->win, c->x, c->y);
-+              if(c->needresize) {
-+                      c->needresize=0;
-+                      XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
-+              } else {
-+                      XMoveWindow(dpy, c->win, c->x, c->y);
-+              }
-               if(!c->mon->lt[c->mon->sellt]->arrange || c->isfloating)
-                       resize(c, c->x, c->y, c->w, c->h, False);
-               showhide(c->snext);
diff --git a/dwm.suckless.org/patches/autoresize.md 
b/dwm.suckless.org/patches/autoresize.md
index e5c8c4c..4b5be90 100644
--- a/dwm.suckless.org/patches/autoresize.md
+++ b/dwm.suckless.org/patches/autoresize.md
@@ -6,7 +6,6 @@ By default, windows that are not visible when requesting a 
resize/move wont get
 
 ## Download
 
- * [autoresize.diff](autoresize.diff) autoresize.diff (07.03.2010)
  * [dwm-autoresize-6.0.diff](dwm-autoresize-6.0.diff) (15.04.2013)
 
 ## Author
diff --git a/dwm.suckless.org/patches/historical/autoresize.diff 
b/dwm.suckless.org/patches/historical/autoresize.diff
new file mode 100644
index 0000000..6c25ae4
--- /dev/null
+++ b/dwm.suckless.org/patches/historical/autoresize.diff
@@ -0,0 +1,35 @@
+diff -r 53d98940cb04 dwm.c
+--- a/dwm.c    Fri Jun 04 11:41:16 2010 +0100
++++ b/dwm.c    Sat Jul 03 10:31:22 2010 +0200
+@@ -88,7 +88,7 @@
+       int basew, baseh, incw, inch, maxw, maxh, minw, minh;
+       int bw, oldbw;
+       unsigned int tags;
+-      Bool isfixed, isfloating, isurgent, oldstate;
++      Bool isfixed, isfloating, isurgent, oldstate, needresize;
+       Client *next;
+       Client *snext;
+       Monitor *mon;
+@@ -591,6 +591,8 @@
+                               configure(c);
+                       if(ISVISIBLE(c))
+                               XMoveResizeWindow(dpy, c->win, c->x, c->y, 
c->w, c->h);
++                      else
++                              c->needresize=1;
+               }
+               else
+                       configure(c);
+@@ -1576,7 +1578,12 @@
+       if(!c)
+               return;
+       if(ISVISIBLE(c)) { /* show clients top down */
+-              XMoveWindow(dpy, c->win, c->x, c->y);
++              if(c->needresize) {
++                      c->needresize=0;
++                      XMoveResizeWindow(dpy, c->win, c->x, c->y, c->w, c->h);
++              } else {
++                      XMoveWindow(dpy, c->win, c->x, c->y);
++              }
+               if(!c->mon->lt[c->mon->sellt]->arrange || c->isfloating)
+                       resize(c, c->x, c->y, c->w, c->h, False);
+               showhide(c->snext);


Reply via email to