[wiki] [sites] [dwm][systray] Update against git HEAD || Ivan Tham
commit 77946cca83c40e7dc0ad154bf79926d5d808e9db
Author: Ivan Tham <pickfire_AT_riseup.net>
Date: Fri Apr 22 16:42:04 2016 +0800
[dwm][systray] Update against git HEAD
diff --git a/dwm.suckless.org/patches/dwm-6.1-systray.diff b/dwm.suckless.org/patches/dwm-6.1-systray.diff
index b8f672c..da1a17a 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 0362114..e574573 100644
+index ff7e096..cf0b3a9 100644
--- a/dwm.c
+++ b/dwm.c
_AT_@ -57,12 +57,30 @@
_AT_@ -201,16 +201,16 @@ index 0362114..e574573 100644
if (!c)
return;
if (cme->message_type == netatom[NetWMState]) {
-_AT_@ -577,7 +660,7 @@ configurenotify(XEvent *e)
- drw_resize(drw, sw, bh);
- updatebars();
- for (m = mons; m; m = m->next)
+_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);
- XMoveResizeWindow(dpy, m->barwin, m->wx, m->by, m->ww, bh);
+ resizebarwin(m);
+ }
focus(NULL);
arrange(NULL);
- }
-_AT_@ -661,6 +744,11 @@ destroynotify(XEvent *e)
+_AT_@ -666,6 +749,11 @@ destroynotify(XEvent *e)
if ((c = wintoclient(ev->window)))
unmanage(c, 1);
_AT_@ -222,7 +222,7 @@ index 0362114..e574573 100644
}
void
-_AT_@ -710,6 +798,7 @@ drawbar(Monitor *m)
+_AT_@ -715,6 +803,7 @@ drawbar(Monitor *m)
dx = (drw->fonts[0]->ascent + drw->fonts[0]->descent + 2) / 4;
_AT_@ -230,7 +230,7 @@ index 0362114..e574573 100644
for (c = m->clients; c; c = c->next) {
occ |= c->tags;
if (c->isurgent)
-_AT_@ -732,6 +821,9 @@ drawbar(Monitor *m)
+_AT_@ -737,6 +826,9 @@ drawbar(Monitor *m)
if (m == selmon) { /* status is only drawn on selected monitor */
w = TEXTW(stext);
x = m->ww - w;
_AT_@ -240,7 +240,7 @@ index 0362114..e574573 100644
if (x < xx) {
x = xx;
w = m->ww - xx;
-_AT_@ -760,6 +852,7 @@ drawbars(void)
+_AT_@ -765,6 +857,7 @@ drawbars(void)
for (m = mons; m; m = m->next)
drawbar(m);
_AT_@ -248,7 +248,7 @@ index 0362114..e574573 100644
}
void
-_AT_@ -787,8 +880,11 @@ expose(XEvent *e)
+_AT_@ -792,8 +885,11 @@ expose(XEvent *e)
Monitor *m;
XExposeEvent *ev = &e->xexpose;
_AT_@ -261,7 +261,7 @@ index 0362114..e574573 100644
}
void
-_AT_@ -875,10 +971,17 @@ getatomprop(Client *c, Atom prop)
+_AT_@ -880,10 +976,17 @@ getatomprop(Client *c, Atom prop)
unsigned long dl;
unsigned char *p = NULL;
Atom da, atom = None;
_AT_@ -280,7 +280,7 @@ index 0362114..e574573 100644
XFree(p);
}
return atom;
-_AT_@ -912,6 +1015,15 @@ getstate(Window w)
+_AT_@ -917,6 +1020,15 @@ getstate(Window w)
return result;
}
_AT_@ -296,7 +296,7 @@ index 0362114..e574573 100644
int
gettextprop(Window w, Atom atom, char *text, unsigned int size)
{
-_AT_@ -1018,7 +1130,7 @@ killclient(const Arg *arg)
+_AT_@ -1023,7 +1135,7 @@ killclient(const Arg *arg)
{
if (!selmon->sel)
return;
_AT_@ -305,7 +305,7 @@ index 0362114..e574573 100644
XGrabServer(dpy);
XSetErrorHandler(xerrordummy);
XSetCloseDownMode(dpy, DestroyAll);
-_AT_@ -1105,6 +1217,12 @@ maprequest(XEvent *e)
+_AT_@ -1110,6 +1222,12 @@ maprequest(XEvent *e)
{
static XWindowAttributes wa;
XMapRequestEvent *ev = &e->xmaprequest;
_AT_@ -318,7 +318,7 @@ index 0362114..e574573 100644
if (!XGetWindowAttributes(dpy, ev->window, &wa))
return;
-_AT_@ -1232,6 +1350,16 @@ propertynotify(XEvent *e)
+_AT_@ -1237,6 +1355,16 @@ propertynotify(XEvent *e)
Window trans;
XPropertyEvent *ev = &e->xproperty;
_AT_@ -335,7 +335,7 @@ index 0362114..e574573 100644
if ((ev->window == root) && (ev->atom == XA_WM_NAME))
updatestatus();
else if (ev->state == PropertyDelete)
-_AT_@ -1283,6 +1411,19 @@ recttomon(int x, int y, int w, int h)
+_AT_@ -1288,6 +1416,19 @@ recttomon(int x, int y, int w, int h)
}
void
_AT_@ -355,7 +355,7 @@ index 0362114..e574573 100644
resize(Client *c, int x, int y, int w, int h, int interact)
{
if (applysizehints(c, &x, &y, &w, &h, interact))
-_AT_@ -1290,6 +1431,14 @@ resize(Client *c, int x, int y, int w, int h, int interact)
+_AT_@ -1295,6 +1436,14 @@ resize(Client *c, int x, int y, int w, int h, int interact)
}
void
_AT_@ -370,7 +370,7 @@ index 0362114..e574573 100644
resizeclient(Client *c, int x, int y, int w, int h)
{
XWindowChanges wc;
-_AT_@ -1362,6 +1511,18 @@ resizemouse(const Arg *arg)
+_AT_@ -1367,6 +1516,18 @@ resizemouse(const Arg *arg)
}
void
_AT_@ -389,7 +389,7 @@ index 0362114..e574573 100644
restack(Monitor *m)
{
Client *c;
-_AT_@ -1450,26 +1611,36 @@ setclientstate(Client *c, long state)
+_AT_@ -1455,26 +1616,36 @@ setclientstate(Client *c, long state)
}
int
_AT_@ -437,7 +437,7 @@ index 0362114..e574573 100644
}
return exists;
}
-_AT_@ -1483,7 +1654,7 @@ setfocus(Client *c)
+_AT_@ -1488,7 +1659,7 @@ setfocus(Client *c)
XA_WINDOW, 32, PropModeReplace,
(unsigned char *) &(c->win), 1);
}
_AT_@ -446,7 +446,7 @@ index 0362114..e574573 100644
}
void
-_AT_@ -1569,12 +1740,18 @@ setup(void)
+_AT_@ -1574,12 +1745,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 +465,7 @@ index 0362114..e574573 100644
/* init cursors */
cursor[CurNormal] = drw_cur_create(drw, XC_left_ptr);
cursor[CurResize] = drw_cur_create(drw, XC_sizing);
-_AT_@ -1586,6 +1763,8 @@ setup(void)
+_AT_@ -1591,6 +1768,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 +474,7 @@ index 0362114..e574573 100644
/* init bars */
updatebars();
updatestatus();
-_AT_@ -1645,6 +1824,22 @@ spawn(const Arg *arg)
+_AT_@ -1650,6 +1829,22 @@ spawn(const Arg *arg)
}
}
_AT_@ -497,7 +497,7 @@ index 0362114..e574573 100644
void
tag(const Arg *arg)
{
-_AT_@ -1694,7 +1889,18 @@ togglebar(const Arg *arg)
+_AT_@ -1699,7 +1894,18 @@ togglebar(const Arg *arg)
{
selmon->showbar = !selmon->showbar;
updatebarpos(selmon);
_AT_@ -517,7 +517,7 @@ index 0362114..e574573 100644
arrange(selmon);
}
-_AT_@ -1790,11 +1996,17 @@ unmapnotify(XEvent *e)
+_AT_@ -1795,11 +2001,17 @@ unmapnotify(XEvent *e)
else
unmanage(c, 0);
}
_AT_@ -535,7 +535,7 @@ index 0362114..e574573 100644
Monitor *m;
XSetWindowAttributes wa = {
.override_redirect = True,
-_AT_@ -1804,10 +2016,15 @@ updatebars(void)
+_AT_@ -1809,10 +2021,15 @@ updatebars(void)
for (m = mons; m; m = m->next) {
if (m->barwin)
continue;
_AT_@ -552,7 +552,7 @@ index 0362114..e574573 100644
XMapRaised(dpy, m->barwin);
}
}
-_AT_@ -1998,6 +2215,117 @@ updatestatus(void)
+_AT_@ -2003,6 +2220,117 @@ updatestatus(void)
}
void
_AT_@ -670,7 +670,7 @@ index 0362114..e574573 100644
updatewindowtype(Client *c)
{
Atom state = getatomprop(c, netatom[NetWMState]);
-_AT_@ -2070,6 +2398,16 @@ wintomon(Window w)
+_AT_@ -2075,6 +2403,16 @@ wintomon(Window w)
return selmon;
}
Received on Fri Apr 22 2016 - 10:42:29 CEST
This archive was generated by hypermail 2.3.0
: Fri Apr 22 2016 - 10:48:14 CEST