util: Remove getwinstate
This commit is contained in:
24
src/util.c
24
src/util.c
@@ -79,30 +79,6 @@ setwinstate(Window win, long state)
|
|||||||
return;
|
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
|
void
|
||||||
uicb_spawn(uicb_t cmd)
|
uicb_spawn(uicb_t cmd)
|
||||||
{
|
{
|
||||||
|
|||||||
@@ -126,7 +126,6 @@ void efree(void *ptr);
|
|||||||
ulong getcolor(char *color);
|
ulong getcolor(char *color);
|
||||||
double round(double x);
|
double round(double x);
|
||||||
void setwinstate(Window win, long state);
|
void setwinstate(Window win, long state);
|
||||||
long getwinstate(Window win);
|
|
||||||
void uicb_spawn(uicb_t);
|
void uicb_spawn(uicb_t);
|
||||||
|
|
||||||
/* tag.c */
|
/* tag.c */
|
||||||
|
|||||||
Reference in New Issue
Block a user