[wiki] [sites] Fix incompatible patch for dwm-6.1-systray.diff || damienr74
commit 54f0ca3eea0957d03cbedee8dfb79e55ee858776
Author: damienr74 <damienr74_AT_gmail.com>
Date: Sun Nov 20 19:41:24 2016 -0400
Fix incompatible patch for dwm-6.1-systray.diff
diff --git a/dwm.suckless.org/patches/dwm-6.1-systray.diff b/dwm.suckless.org/patches/dwm-6.1-systray.diff
index da1a17a..58aca75 100644
--- a/dwm.suckless.org/patches/dwm-6.1-systray.diff
+++ b/dwm.suckless.org/patches/dwm-6.1-systray.diff
_AT_@ -14,7 +14,7 @@ index 7054c06..8393a58 100644
static const int topbar = 1; /* 0 means bottom bar */
diff --git a/dwm.c b/dwm.c
-index ff7e096..cf0b3a9 100644
+index 0362114..1bbce1d 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -57,12 +57,30 @@
_AT_@ -201,16 +201,17 @@ index ff7e096..cf0b3a9 100644
if (!c)
return;
if (cme->message_type == netatom[NetWMState]) {
-_AT_@ -581,7 +664,7 @@ configurenotify(XEvent *e)
- for (c = m->clients; c; c = c->next)
- if (c->isfullscreen)
- resizeclient(c, m->mx, m->my, m->mw, m->mh);
+_AT_@ -576,8 +659,7 @@ configurenotify(XEvent *e)
+ if (updategeom() || dirty) {
+ drw_resize(drw, sw, bh);
+ updatebars();
+- for (m = mons; m; m = m->next)
- XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh);
-+ resizebarwin(m);
- }
++ resizebarwin(m);
focus(NULL);
arrange(NULL);
-_AT_@ -666,6 +749,11 @@ destroynotify(XEvent *e)
+ }
+_AT_@ -661,6 +743,11 @@ destroynotify(XEvent *e)
if ((c = wintoclient(ev->window)))
unmanage(c, 1);
_AT_@ -222,7 +223,7 @@ index ff7e096..cf0b3a9 100644
}
void
-_AT_@ -715,6 +803,7 @@ drawbar(Monitor *m)
+_AT_@ -710,6 +797,7 @@ drawbar(Monitor *m)
dx = (drw->fonts[0]->ascent + drw->fonts[0]->descent + 2) / 4;
_AT_@ -230,7 +231,7 @@ index ff7e096..cf0b3a9 100644
for (c = m->clients; c; c = c->next) {
occ |= c->tags;
if (c->isurgent)
-_AT_@ -737,6 +826,9 @@ drawbar(Monitor *m)
+_AT_@ -732,6 +820,9 @@ drawbar(Monitor *m)
if (m == selmon) { /* status is only drawn on selected monitor */
w = TEXTW(stext);
x = m->ww - w;
_AT_@ -240,7 +241,7 @@ index ff7e096..cf0b3a9 100644
if (x < xx) {
x = xx;
w = m->ww - xx;
-_AT_@ -765,6 +857,7 @@ drawbars(void)
+_AT_@ -760,6 +851,7 @@ drawbars(void)
for (m = mons; m; m = m->next)
drawbar(m);
_AT_@ -248,7 +249,7 @@ index ff7e096..cf0b3a9 100644
}
void
-_AT_@ -792,8 +885,11 @@ expose(XEvent *e)
+_AT_@ -787,8 +879,11 @@ expose(XEvent *e)
Monitor *m;
XExposeEvent *ev = &e->xexpose;
_AT_@ -261,7 +262,7 @@ index ff7e096..cf0b3a9 100644
}
void
-_AT_@ -880,10 +976,17 @@ getatomprop(Client *c, Atom prop)
+_AT_@ -875,10 +970,17 @@ getatomprop(Client *c, Atom prop)
unsigned long dl;
unsigned char *p = NULL;
Atom da, atom = None;
_AT_@ -280,7 +281,7 @@ index ff7e096..cf0b3a9 100644
XFree(p);
}
return atom;
-_AT_@ -917,6 +1020,15 @@ getstate(Window w)
+_AT_@ -912,6 +1014,15 @@ getstate(Window w)
return result;
}
_AT_@ -296,7 +297,7 @@ index ff7e096..cf0b3a9 100644
int
gettextprop(Window w, Atom atom, char *text, unsigned int size)
{
-_AT_@ -1023,7 +1135,7 @@ killclient(const Arg *arg)
+_AT_@ -1018,7 +1129,7 @@ killclient(const Arg *arg)
{
if (!selmon->sel)
return;
_AT_@ -305,7 +306,7 @@ index ff7e096..cf0b3a9 100644
XGrabServer(dpy);
XSetErrorHandler(xerrordummy);
XSetCloseDownMode(dpy, DestroyAll);
-_AT_@ -1110,6 +1222,12 @@ maprequest(XEvent *e)
+_AT_@ -1105,6 +1216,12 @@ maprequest(XEvent *e)
{
static XWindowAttributes wa;
XMapRequestEvent *ev = &e->xmaprequest;
_AT_@ -318,7 +319,7 @@ index ff7e096..cf0b3a9 100644
if (!XGetWindowAttributes(dpy, ev->window, &wa))
return;
-_AT_@ -1237,6 +1355,16 @@ propertynotify(XEvent *e)
+_AT_@ -1232,6 +1349,16 @@ propertynotify(XEvent *e)
Window trans;
XPropertyEvent *ev = &e->xproperty;
_AT_@ -335,7 +336,7 @@ index ff7e096..cf0b3a9 100644
if ((ev->window == root) && (ev->atom == XA_WM_NAME))
updatestatus();
else if (ev->state == PropertyDelete)
-_AT_@ -1288,6 +1416,19 @@ recttomon(int x, int y, int w, int h)
+_AT_@ -1283,6 +1410,19 @@ recttomon(int x, int y, int w, int h)
}
void
_AT_@ -355,7 +356,7 @@ index ff7e096..cf0b3a9 100644
resize(Client *c, int x, int y, int w, int h, int interact)
{
if (applysizehints(c, &x, &y, &w, &h, interact))
-_AT_@ -1295,6 +1436,14 @@ resize(Client *c, int x, int y, int w, int h, int interact)
+_AT_@ -1290,6 +1430,14 @@ resize(Client *c, int x, int y, int w, int h, int interact)
}
void
_AT_@ -370,7 +371,7 @@ index ff7e096..cf0b3a9 100644
resizeclient(Client *c, int x, int y, int w, int h)
{
XWindowChanges wc;
-_AT_@ -1367,6 +1516,18 @@ resizemouse(const Arg *arg)
+_AT_@ -1362,6 +1510,18 @@ resizemouse(const Arg *arg)
}
void
_AT_@ -389,7 +390,7 @@ index ff7e096..cf0b3a9 100644
restack(Monitor *m)
{
Client *c;
-_AT_@ -1455,26 +1616,36 @@ setclientstate(Client *c, long state)
+_AT_@ -1450,26 +1610,36 @@ setclientstate(Client *c, long state)
}
int
_AT_@ -437,7 +438,7 @@ index ff7e096..cf0b3a9 100644
}
return exists;
}
-_AT_@ -1488,7 +1659,7 @@ setfocus(Client *c)
+_AT_@ -1483,7 +1653,7 @@ setfocus(Client *c)
XA_WINDOW, 32, PropModeReplace,
(unsigned char *) &(c->win), 1);
}
_AT_@ -446,7 +447,7 @@ index ff7e096..cf0b3a9 100644
}
void
-_AT_@ -1574,12 +1745,18 @@ setup(void)
+_AT_@ -1569,12 +1739,18 @@ setup(void)
wmatom[WMTakeFocus] = XInternAtom(dpy, "WM_TAKE_FOCUS", False);
netatom[NetActiveWindow] = XInternAtom(dpy, "_NET_ACTIVE_WINDOW", False);
netatom[NetSupported] = XInternAtom(dpy, "_NET_SUPPORTED", False);
_AT_@ -465,7 +466,7 @@ index ff7e096..cf0b3a9 100644
/* init cursors */
cursor[CurNormal] = drw_cur_create(drw, XC_left_ptr);
cursor[CurResize] = drw_cur_create(drw, XC_sizing);
-_AT_@ -1591,6 +1768,8 @@ setup(void)
+_AT_@ -1586,6 +1762,8 @@ setup(void)
scheme[SchemeSel].border = drw_clr_create(drw, selbordercolor);
scheme[SchemeSel].bg = drw_clr_create(drw, selbgcolor);
scheme[SchemeSel].fg = drw_clr_create(drw, selfgcolor);
_AT_@ -474,7 +475,7 @@ index ff7e096..cf0b3a9 100644
/* init bars */
updatebars();
updatestatus();
-_AT_@ -1650,6 +1829,22 @@ spawn(const Arg *arg)
+_AT_@ -1645,6 +1823,22 @@ spawn(const Arg *arg)
}
}
_AT_@ -497,7 +498,7 @@ index ff7e096..cf0b3a9 100644
void
tag(const Arg *arg)
{
-_AT_@ -1699,7 +1894,18 @@ togglebar(const Arg *arg)
+_AT_@ -1694,7 +1888,18 @@ togglebar(const Arg *arg)
{
selmon->showbar = !selmon->showbar;
updatebarpos(selmon);
_AT_@ -517,7 +518,7 @@ index ff7e096..cf0b3a9 100644
arrange(selmon);
}
-_AT_@ -1795,11 +2001,17 @@ unmapnotify(XEvent *e)
+_AT_@ -1790,11 +1995,17 @@ unmapnotify(XEvent *e)
else
unmanage(c, 0);
}
_AT_@ -535,7 +536,7 @@ index ff7e096..cf0b3a9 100644
Monitor *m;
XSetWindowAttributes wa = {
.override_redirect = True,
-_AT_@ -1809,10 +2021,15 @@ updatebars(void)
+_AT_@ -1804,10 +2015,15 @@ updatebars(void)
for (m = mons; m; m = m->next) {
if (m->barwin)
continue;
_AT_@ -552,7 +553,7 @@ index ff7e096..cf0b3a9 100644
XMapRaised(dpy, m->barwin);
}
}
-_AT_@ -2003,6 +2220,117 @@ updatestatus(void)
+_AT_@ -1998,6 +2214,117 @@ updatestatus(void)
}
void
_AT_@ -670,7 +671,7 @@ index ff7e096..cf0b3a9 100644
updatewindowtype(Client *c)
{
Atom state = getatomprop(c, netatom[NetWMState]);
-_AT_@ -2075,6 +2403,16 @@ wintomon(Window w)
+_AT_@ -2070,6 +2397,16 @@ wintomon(Window w)
return selmon;
}
Received on Mon Nov 21 2016 - 00:46:32 CET
This archive was generated by hypermail 2.3.0
: Mon Nov 21 2016 - 00:48:15 CET