[wiki] [sites] Removed an unused function in the swallowing patch. || Rob King

From: <git_AT_suckless.org>
Date: Wed, 27 Jan 2016 07:18:00 +0100

commit f165217cef86c0034928ec78e010612a7aa19d97
Author: Rob King <jking_AT_deadpixi.com>
Date: Wed Jan 27 00:16:58 2016 -0600

    Removed an unused function in the swallowing patch.

diff --git a/dwm.suckless.org/patches/dwm-6.1-swallowing.diff b/dwm.suckless.org/patches/dwm-6.1-swallowing.diff
index 3a9cef1..c116080 100644
--- a/dwm.suckless.org/patches/dwm-6.1-swallowing.diff
+++ b/dwm.suckless.org/patches/dwm-6.1-swallowing.diff
_AT_@ -17,7 +17,7 @@ index 7054c06..d1140ff 100644
  
  /* layout(s) */
 diff --git a/dwm.c b/dwm.c
-index ff7e096..260a50d 100644
+index ff7e096..b50436a 100644
 --- a/dwm.c
 +++ b/dwm.c
 _AT_@ -40,6 +40,10 @@
_AT_@ -172,31 +172,7 @@ index ff7e096..260a50d 100644
  }
  
  void
-_AT_@ -890,6 +951,23 @@ getatomprop(Client *c, Atom prop)
- }
-
- int
-+getcardprop(Client *c, Atom prop)
-+{
-+ int di;
-+ unsigned long dl;
-+ unsigned char *p = NULL;
-+ Atom da = None;
-+ int v = 0;
-+
-+ if (XGetWindowProperty(dpy, c->win, prop, 0L, sizeof(int), False, XA_CARDINAL,
-+ &da, &di, &dl, &dl, &p) == Success && p) {
-+ v = *(int *)p;
-+ XFree(p);
-+ }
-+ return v;
-+}
-+
-+int
- getrootptr(int *x, int *y)
- {
- int di;
-_AT_@ -1037,12 +1115,13 @@ killclient(const Arg *arg)
+_AT_@ -1037,12 +1098,13 @@ killclient(const Arg *arg)
  void
  manage(Window w, XWindowAttributes *wa)
  {
_AT_@ -211,7 +187,7 @@ index ff7e096..260a50d 100644
          updatetitle(c);
          if (XGetTransientForHint(dpy, w, &trans) && (t = wintoclient(trans))) {
                  c->mon = t->mon;
-_AT_@ -1050,7 +1129,9 @@ manage(Window w, XWindowAttributes *wa)
+_AT_@ -1050,7 +1112,9 @@ manage(Window w, XWindowAttributes *wa)
          } else {
                  c->mon = selmon;
                  applyrules(c);
_AT_@ -221,7 +197,7 @@ index ff7e096..260a50d 100644
          /* geometry */
          c->x = c->oldx = wa->x;
          c->y = c->oldy = wa->y;
-_AT_@ -1092,6 +1173,8 @@ manage(Window w, XWindowAttributes *wa)
+_AT_@ -1092,6 +1156,8 @@ manage(Window w, XWindowAttributes *wa)
          c->mon->sel = c;
          arrange(c->mon);
          XMapWindow(dpy, c->win);
_AT_@ -230,7 +206,7 @@ index ff7e096..260a50d 100644
          focus(NULL);
  }
  
-_AT_@ -1763,6 +1846,20 @@ unmanage(Client *c, int destroyed)
+_AT_@ -1763,6 +1829,20 @@ unmanage(Client *c, int destroyed)
          Monitor *m = c->mon;
          XWindowChanges wc;
  
_AT_@ -251,7 +227,7 @@ index ff7e096..260a50d 100644
          /* The server grab construct avoids race conditions. */
          detach(c);
          detachstack(c);
-_AT_@ -1778,9 +1875,12 @@ unmanage(Client *c, int destroyed)
+_AT_@ -1778,9 +1858,12 @@ unmanage(Client *c, int destroyed)
                  XUngrabServer(dpy);
          }
          free(c);
_AT_@ -267,7 +243,7 @@ index ff7e096..260a50d 100644
  }
  
  void
-_AT_@ -2045,16 +2145,118 @@ view(const Arg *arg)
+_AT_@ -2045,16 +2128,118 @@ view(const Arg *arg)
          arrange(selmon);
  }
  
_AT_@ -388,7 +364,7 @@ index ff7e096..260a50d 100644
          return NULL;
  }
  
-_AT_@ -2136,6 +2338,10 @@ main(int argc, char *argv[])
+_AT_@ -2136,6 +2321,10 @@ main(int argc, char *argv[])
                  fputs("warning: no locale support
", stderr);
          if (!(dpy = XOpenDisplay(NULL)))
                  die("dwm: cannot open display
");
Received on Wed Jan 27 2016 - 07:18:00 CET

This archive was generated by hypermail 2.3.0 : Wed Jan 27 2016 - 07:24:16 CET