sites

public wiki contents of suckless.org
git clone git://git.suckless.org/sites
Log | Files | Refs

commit f165217cef86c0034928ec78e010612a7aa19d97
parent 5d8aeb88d856895b94da8cc93fd11622915e2015
Author: Rob King <jking@deadpixi.com>
Date:   Wed, 27 Jan 2016 00:16:58 -0600

Removed an unused function in the swallowing patch.

Diffstat:
Mdwm.suckless.org/patches/dwm-6.1-swallowing.diff | 40++++++++--------------------------------
1 file changed, 8 insertions(+), 32 deletions(-)

diff --git a/dwm.suckless.org/patches/dwm-6.1-swallowing.diff b/dwm.suckless.org/patches/dwm-6.1-swallowing.diff @@ -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 @@ -40,6 +40,10 @@ @@ -172,31 +172,7 @@ index ff7e096..260a50d 100644 } void -@@ -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; -@@ -1037,12 +1115,13 @@ killclient(const Arg *arg) +@@ -1037,12 +1098,13 @@ killclient(const Arg *arg) void manage(Window w, XWindowAttributes *wa) { @@ -211,7 +187,7 @@ index ff7e096..260a50d 100644 updatetitle(c); if (XGetTransientForHint(dpy, w, &trans) && (t = wintoclient(trans))) { c->mon = t->mon; -@@ -1050,7 +1129,9 @@ manage(Window w, XWindowAttributes *wa) +@@ -1050,7 +1112,9 @@ manage(Window w, XWindowAttributes *wa) } else { c->mon = selmon; applyrules(c); @@ -221,7 +197,7 @@ index ff7e096..260a50d 100644 /* geometry */ c->x = c->oldx = wa->x; c->y = c->oldy = wa->y; -@@ -1092,6 +1173,8 @@ manage(Window w, XWindowAttributes *wa) +@@ -1092,6 +1156,8 @@ manage(Window w, XWindowAttributes *wa) c->mon->sel = c; arrange(c->mon); XMapWindow(dpy, c->win); @@ -230,7 +206,7 @@ index ff7e096..260a50d 100644 focus(NULL); } -@@ -1763,6 +1846,20 @@ unmanage(Client *c, int destroyed) +@@ -1763,6 +1829,20 @@ unmanage(Client *c, int destroyed) Monitor *m = c->mon; XWindowChanges wc; @@ -251,7 +227,7 @@ index ff7e096..260a50d 100644 /* The server grab construct avoids race conditions. */ detach(c); detachstack(c); -@@ -1778,9 +1875,12 @@ unmanage(Client *c, int destroyed) +@@ -1778,9 +1858,12 @@ unmanage(Client *c, int destroyed) XUngrabServer(dpy); } free(c); @@ -267,7 +243,7 @@ index ff7e096..260a50d 100644 } void -@@ -2045,16 +2145,118 @@ view(const Arg *arg) +@@ -2045,16 +2128,118 @@ view(const Arg *arg) arrange(selmon); } @@ -388,7 +364,7 @@ index ff7e096..260a50d 100644 return NULL; } -@@ -2136,6 +2338,10 @@ main(int argc, char *argv[]) +@@ -2136,6 +2321,10 @@ main(int argc, char *argv[]) fputs("warning: no locale support\n", stderr); if (!(dpy = XOpenDisplay(NULL))) die("dwm: cannot open display\n");