remove old comments
This commit is contained in:
parent
6a6f7b0601
commit
d5ef228954
60
speedwm.c
60
speedwm.c
|
@ -4891,66 +4891,6 @@ setdesktopnames(void)
|
|||
XSetTextProperty(dpy, root, &text, netatom[NetDesktopNames]);
|
||||
}
|
||||
|
||||
/*
|
||||
int
|
||||
#if USESYSTRAY
|
||||
sendevent(Window w, Atom proto, int mask, long d0, long d1, long d2, long d3, long d4)
|
||||
#else
|
||||
sendevent(Client *c, Atom proto)
|
||||
#endif
|
||||
{
|
||||
int n;
|
||||
Atom *protocols;
|
||||
int exists = 0;
|
||||
XEvent ev;
|
||||
|
||||
#if USESYSTRAY
|
||||
Atom mt;
|
||||
#endif
|
||||
|
||||
#if USESYSTRAY
|
||||
if (proto == wmatom[WMTakeFocus] || proto == wmatom[WMDelete]) {
|
||||
mt = wmatom[WMProtocols];
|
||||
if (XGetWMProtocols(dpy, w, &protocols, &n)) {
|
||||
while (!exists && n--)
|
||||
exists = protocols[n] == proto;
|
||||
XFree(protocols);
|
||||
}
|
||||
} else {
|
||||
exists = True;
|
||||
mt = proto;
|
||||
#else
|
||||
if (XGetWMProtocols(dpy, c->win, &protocols, &n)) {
|
||||
while (!exists && n--)
|
||||
exists = protocols[n] == proto;
|
||||
XFree(protocols);
|
||||
}
|
||||
#endif
|
||||
if (exists) {
|
||||
ev.type = ClientMessage;
|
||||
ev.xclient.format = 32;
|
||||
#if USESYSTRAY
|
||||
ev.xclient.window = w;
|
||||
ev.xclient.message_type = mt;
|
||||
ev.xclient.data.l[0] = d0;
|
||||
ev.xclient.data.l[1] = d1;
|
||||
ev.xclient.data.l[2] = d2;
|
||||
ev.xclient.data.l[3] = d3;
|
||||
ev.xclient.data.l[4] = d4;
|
||||
XSendEvent(dpy, w, False, mask, &ev);
|
||||
#else
|
||||
ev.xclient.window = c->win;
|
||||
ev.xclient.message_type = wmatom[WMProtocols];
|
||||
ev.xclient.data.l[0] = proto;
|
||||
ev.xclient.data.l[1] = CurrentTime;
|
||||
XSendEvent(dpy, c->win, False, NoEventMask, &ev);
|
||||
#endif
|
||||
}
|
||||
return exists;
|
||||
}
|
||||
}
|
||||
*/
|
||||
|
||||
int
|
||||
#if USESYSTRAY
|
||||
sendevent(Window w, Atom proto, int mask, long d0, long d1, long d2, long d3, long d4)
|
||||
|
|
Loading…
Reference in a new issue