[wiki] [sites] Move ancient autoresize version to historical... || Britton Leo Kerin

From: <git_AT_suckless.org>
Date: Sun, 17 Jul 2016 22:34:14 +0200

commit 2dcdd0434f39c12686c9aa38ce996cfbb8c96233
Author: Britton Leo Kerin <britton.kerin_AT_gmail.com>
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
_AT_@ -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
-_AT_@ -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;
-_AT_@ -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);
-_AT_@ -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
_AT_@ -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
_AT_@ -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
+_AT_@ -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;
+_AT_@ -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);
+_AT_@ -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);
Received on Sun Jul 17 2016 - 22:34:14 CEST

This archive was generated by hypermail 2.3.0 : Sun Jul 17 2016 - 22:36:16 CEST