[wiki] [sites] Updated to work with latest version of dwm || Dave Kennedy

From: <git_AT_suckless.org>
Date: Sun, 22 Nov 2015 19:32:05 +0100

commit 5f4f83b5dcc19cf6914c9f3b3039c97662d62142
Author: Dave Kennedy <dave-kennedy_AT_users.noreply.github.com>
Date: Sun Nov 22 11:33:05 2015 -0700

    Updated to work with latest version of dwm

diff --git a/dwm.suckless.org/patches/attachabove.md b/dwm.suckless.org/patches/attachabove.md
index e8df87b..b1e049e 100644
--- a/dwm.suckless.org/patches/attachabove.md
+++ b/dwm.suckless.org/patches/attachabove.md
_AT_@ -11,7 +11,7 @@ Download
 Patches against different versions of dwm are available at
 [dwm-clean-patches](https://github.com/jceb/dwm-clean-patches).
 
- * [dwm-6.1-attachabove.diff](dwm-6.1-attachabove.diff) (1786b) (20140209)
+ * [dwm-6.1-attachabove.diff](dwm-6.1-attachabove.diff) (1829b) (20151122)
  * [dwm-git-20120406-attachabove.diff](dwm-git-20120406-attachabove.diff) (1709b)
  * [dwm-6.0-attachabove.diff](dwm-6.0-attachabove.diff) (1707b) (20120406)
  * [dwm-5.6.1-attachabove.diff](historical/dwm-5.6.1-attachabove.diff) (1.1K) (20090817)
diff --git a/dwm.suckless.org/patches/dwm-6.1-attachabove.diff b/dwm.suckless.org/patches/dwm-6.1-attachabove.diff
index 1bd1aad..e941939 100644
--- a/dwm.suckless.org/patches/dwm-6.1-attachabove.diff
+++ b/dwm.suckless.org/patches/dwm-6.1-attachabove.diff
_AT_@ -1,13 +1,11 @@
 Author: Jan Christoph Ebersbach <jceb_AT_e-jc.de>
 URL: http://dwm.suckless.org/patches/attachabove
 attachabove makes new clients attach above the selected client (instead of
-always becoming the new master) – basically how Xmonad does it.
+always becoming the new master) - basically how Xmonad does it.
 
-Index: dwm/dwm.c
-===================================================================
---- dwm/dwm.c.orig 2014-02-09 15:24:20.560117200 +0100
-+++ dwm/dwm.c 2014-02-09 15:24:20.552117200 +0100
-_AT_@ -146,6 +146,7 @@
+--- dwm/dwm.c.orig 2015-11-22 10:48:28.288368772 -0700
++++ dwm/dwm.c 2015-11-22 10:51:45.308360761 -0700
+_AT_@ -147,6 +147,7 @@ static int applysizehints(Client *c, int
  static void arrange(Monitor *m);
  static void arrangemon(Monitor *m);
  static void attach(Client *c);
_AT_@ -15,11 +13,12 @@ Index: dwm/dwm.c
  static void attachstack(Client *c);
  static void buttonpress(XEvent *e);
  static void checkotherwm(void);
-_AT_@ -401,6 +402,19 @@
+_AT_@ -406,6 +407,20 @@ attach(Client *c)
  }
  
  void
-+attachabove(Client *c) {
++attachabove(Client *c)
++{
 + if(c->mon->sel == NULL || c->mon->sel == c->mon->clients || c->mon->sel->isfloating) {
 + attach(c);
 + return;
_AT_@ -32,19 +31,19 @@ Index: dwm/dwm.c
 +}
 +
 +void
- attachstack(Client *c) {
+ attachstack(Client *c)
+ {
          c->snext = c->mon->stack;
- c->mon->stack = c;
-_AT_@ -1051,7 +1065,7 @@
+_AT_@ -1076,7 +1091,7 @@ manage(Window w, XWindowAttributes *wa)
                  c->isfloating = c->oldstate = trans != None || c->isfixed;
- if(c->isfloating)
+ if (c->isfloating)
                  XRaiseWindow(dpy, c->win);
 - attach(c);
 + attachabove(c);
          attachstack(c);
          XChangeProperty(dpy, root, netatom[NetClientList], XA_WINDOW, 32, PropModeAppend,
                          (unsigned char *) &(c->win), 1);
-_AT_@ -1383,7 +1397,7 @@
+_AT_@ -1434,7 +1449,7 @@ sendmon(Client *c, Monitor *m)
          detachstack(c);
          c->mon = m;
          c->tags = m->tagset[m->seltags]; /* assign tags of target monitor */
_AT_@ -53,7 +52,7 @@ Index: dwm/dwm.c
          attachstack(c);
          focus(NULL);
          arrange(NULL);
-_AT_@ -1818,7 +1832,7 @@
+_AT_@ -1891,7 +1906,7 @@ updategeom(void)
                                          m->clients = c->next;
                                          detachstack(c);
                                          c->mon = mons;
_AT_@ -61,4 +60,4 @@ Index: dwm/dwm.c
 + attachabove(c);
                                          attachstack(c);
                                  }
- if(m == selmon)
+ if (m == selmon)
Received on Sun Nov 22 2015 - 19:32:05 CET

This archive was generated by hypermail 2.3.0 : Sun Nov 22 2015 - 19:36:18 CET