Remove useless old atoms
This commit is contained in:
parent
337bc1bd1c
commit
359dc8c73c
21
speedwm.c
21
speedwm.c
|
@ -127,7 +127,6 @@ enum { Manager, Xembed, XembedInfo, XLast }; /* Xembed atoms */
|
|||
#endif
|
||||
|
||||
enum { WMClass, WMProtocols, WMDelete, WMState, WMTakeFocus, WMLast }; /* default atoms */
|
||||
enum { DWMTags, DWMLast };
|
||||
enum { ClkTagBar, ClkLtSymbol, ClkStatusText, ClkWinTitle,
|
||||
ClkClientWin, ClkRootWin, ClkLast }; /* clicks */
|
||||
|
||||
|
@ -330,7 +329,6 @@ static void stairs(Monitor *m);
|
|||
#endif
|
||||
static int applysizehints(Client *c, int *x, int *y, int *w, int *h, int interact);
|
||||
static void inplacerotate(const Arg *arg);
|
||||
static void settagsatom(Window w, unsigned int tags);
|
||||
static void togglesticky(const Arg *arg);
|
||||
static void previewtag(const Arg *arg);
|
||||
static void setcurrentdesktop(void);
|
||||
|
@ -667,9 +665,9 @@ static void (*handler[LASTEvent]) (XEvent *) = {
|
|||
[UnmapNotify] = unmapnotify
|
||||
};
|
||||
#if USESYSTRAY
|
||||
static Atom wmatom[WMLast], netatom[NetLast], xatom[XLast], dwmatom[DWMLast], motifatom;
|
||||
static Atom wmatom[WMLast], netatom[NetLast], xatom[XLast], motifatom;
|
||||
#else
|
||||
static Atom wmatom[WMLast], netatom[NetLast], dwmatom[DWMLast], motifatom;
|
||||
static Atom wmatom[WMLast], netatom[NetLast], motifatom;
|
||||
#endif
|
||||
#if USEIPC
|
||||
static int epoll_fd;
|
||||
|
@ -3173,16 +3171,8 @@ manage(Window w, XWindowAttributes *wa)
|
|||
c->mon = selmon;
|
||||
applyrules(c);
|
||||
term = termforwin(c);
|
||||
|
||||
if(XGetWindowProperty(dpy, c->win, dwmatom[DWMTags], 0L, 1L, False, XA_CARDINAL,
|
||||
&atom, &format, &n, &extra, (unsigned char **)&ptags) == Success && n == 1 && *ptags != 0) {
|
||||
c->tags = *ptags;
|
||||
XFree(ptags);
|
||||
}
|
||||
}
|
||||
|
||||
settagsatom(c->win, c->tags);
|
||||
|
||||
if (unmanaged) {
|
||||
XMapWindow(dpy, c->win);
|
||||
if (unmanaged == 1)
|
||||
|
@ -4766,7 +4756,6 @@ setup(void)
|
|||
netatom[NetWMWindowTypeDialog] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DIALOG", False);
|
||||
netatom[NetWMWindowTypeDesktop] = XInternAtom(dpy, "_NET_WM_WINDOW_TYPE_DESKTOP", False);
|
||||
netatom[NetClientList] = XInternAtom(dpy, "_NET_CLIENT_LIST", False);
|
||||
dwmatom[DWMTags] = XInternAtom(dpy, "_DWM_TAGS", False);
|
||||
netatom[NetClientInfo] = XInternAtom(dpy, "_NET_CLIENT_INFO", False);
|
||||
netatom[NetClientListStacking] = XInternAtom(dpy, "_NET_CLIENT_LIST_STACKING", False);
|
||||
#if USEFADE
|
||||
|
@ -6363,12 +6352,6 @@ setclienttagprop(Client *c)
|
|||
PropModeReplace, (unsigned char *) data, 2);
|
||||
}
|
||||
|
||||
void
|
||||
settagsatom(Window w, unsigned int tags) {
|
||||
XChangeProperty(dpy, w, dwmatom[DWMTags], XA_CARDINAL, 32,
|
||||
PropModeReplace, (unsigned char*)&tags, 1);
|
||||
}
|
||||
|
||||
int
|
||||
main(int argc, char *argv[])
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue