util: Remove getwinstate
This commit is contained in:
parent
f3a95191b1
commit
0dfdf50694
24
src/util.c
24
src/util.c
@ -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)
|
||||
{
|
||||
|
||||
@ -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 */
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user