util: Remove getwinstate

This commit is contained in:
Martin Duquesnoy 2008-11-04 15:01:02 +01:00
parent f3a95191b1
commit 0dfdf50694
2 changed files with 0 additions and 25 deletions

View File

@ -79,30 +79,6 @@ setwinstate(Window win, long state)
return;
}
long
getwinstate(Window win)
{
int f;
long ret = -1;
ulong n, e;
uchar *p = NULL;
Atom at;
if(XGetWindowProperty(dpy, win, XInternAtom(dpy, "WM_STATE", False),
0L, 2L, False, XInternAtom(dpy, "WM_STATE", False),
&at, &f, &n, &e, (unsigned char **)&p) != Success)
{
return -1;
}
if(n != 0)
ret = *p;
free(p);
return ret;
}
void
uicb_spawn(uicb_t cmd)
{

View File

@ -126,7 +126,6 @@ void efree(void *ptr);
ulong getcolor(char *color);
double round(double x);
void setwinstate(Window win, long state);
long getwinstate(Window win);
void uicb_spawn(uicb_t);
/* tag.c */