remove useless AWESOMEPROPS_ATOM() define
This commit is contained in:
parent
a5c86280b3
commit
bdfb84f3b5
9
client.c
9
client.c
|
@ -58,7 +58,9 @@ client_loadprops(Client * c, int screen)
|
||||||
|
|
||||||
prop = p_new(char, ntags + 2);
|
prop = p_new(char, ntags + 2);
|
||||||
|
|
||||||
if(xgettextprop(c->win, AWESOMEPROPS_ATOM(globalconf.display), prop, ntags + 2))
|
if(xgettextprop(c->win,
|
||||||
|
XInternAtom(globalconf.display, "_AWESOME_PROPERTIES", False),
|
||||||
|
prop, ntags + 2))
|
||||||
{
|
{
|
||||||
for(i = 0, tag = globalconf.screens[screen].tags; tag && i < ntags && prop[i]; i++, tag = tag->next)
|
for(i = 0, tag = globalconf.screens[screen].tags; tag && i < ntags && prop[i]; i++, tag = tag->next)
|
||||||
if(prop[i] == '1')
|
if(prop[i] == '1')
|
||||||
|
@ -551,8 +553,9 @@ client_saveprops(Client *c)
|
||||||
|
|
||||||
prop[++i] = '\0';
|
prop[++i] = '\0';
|
||||||
|
|
||||||
XChangeProperty(globalconf.display, c->win, AWESOMEPROPS_ATOM(globalconf.display), XA_STRING, 8,
|
XChangeProperty(globalconf.display, c->win,
|
||||||
PropModeReplace, (unsigned char *) prop, i);
|
XInternAtom(globalconf.display, "_AWESOME_PROPERTIES", False),
|
||||||
|
XA_STRING, 8, PropModeReplace, (unsigned char *) prop, i);
|
||||||
|
|
||||||
p_delete(&prop);
|
p_delete(&prop);
|
||||||
}
|
}
|
||||||
|
|
7
layout.c
7
layout.c
|
@ -142,7 +142,8 @@ loadawesomeprops(int screen)
|
||||||
prop = p_new(char, ntags + 1);
|
prop = p_new(char, ntags + 1);
|
||||||
|
|
||||||
if(xgettextprop(RootWindow(globalconf.display, get_phys_screen(screen)),
|
if(xgettextprop(RootWindow(globalconf.display, get_phys_screen(screen)),
|
||||||
AWESOMEPROPS_ATOM(globalconf.display), prop, ntags + 1))
|
XInternAtom(globalconf.display, "_AWESOME_PROPERTIES", False),
|
||||||
|
prop, ntags + 1))
|
||||||
for(i = 0, tag = globalconf.screens[screen].tags; tag && prop[i]; i++, tag = tag->next)
|
for(i = 0, tag = globalconf.screens[screen].tags; tag && prop[i]; i++, tag = tag->next)
|
||||||
if(prop[i] == '1')
|
if(prop[i] == '1')
|
||||||
tag->selected = True;
|
tag->selected = True;
|
||||||
|
@ -214,8 +215,8 @@ saveawesomeprops(int screen)
|
||||||
prop[i] = '\0';
|
prop[i] = '\0';
|
||||||
XChangeProperty(globalconf.display,
|
XChangeProperty(globalconf.display,
|
||||||
RootWindow(globalconf.display, get_phys_screen(screen)),
|
RootWindow(globalconf.display, get_phys_screen(screen)),
|
||||||
AWESOMEPROPS_ATOM(globalconf.display), XA_STRING, 8,
|
XInternAtom(globalconf.display, "_AWESOME_PROPERTIES", False),
|
||||||
PropModeReplace, (unsigned char *) prop, i);
|
XA_STRING, 8, PropModeReplace, (unsigned char *) prop, i);
|
||||||
p_delete(&prop);
|
p_delete(&prop);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue