remove useless AWESOMEPROPS_ATOM() define

This commit is contained in:
Julien Danjou 2008-01-06 22:55:46 +01:00
parent a5c86280b3
commit bdfb84f3b5
3 changed files with 10 additions and 8 deletions

View File

@ -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);
} }

View File

@ -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);
} }

View File

@ -24,8 +24,6 @@
#include "uicb.h" #include "uicb.h"
#define AWESOMEPROPS_ATOM(disp) XInternAtom(disp, "_AWESOME_PROPERTIES", False)
typedef void (LayoutArrange)(int); typedef void (LayoutArrange)(int);
typedef struct Layout Layout; typedef struct Layout Layout;