commit 4628fa8259bf932a58637ecfdac362d1ba1494c7
parent e716fb9955a28f68c5fdc226dc94901a97e5243f
Author: Anselm R. Garbe <garbeam@wmii.de>
Date: Mon, 10 Jul 2006 16:14:18 +0200
removed win_state functions, not used
Diffstat:
2 files changed, 0 insertions(+), 24 deletions(-)
diff --git a/cmd/wm/wm.c b/cmd/wm/wm.c
@@ -104,29 +104,6 @@ win_proto(Window w)
return protos;
}
-int
-win_state(Window w)
-{
- /* state hints */
- XWMHints *hints = XGetWMHints(blz.dpy, w);
- int res;
-
- long *prop = 0;
- if(win_property(w, wm_atom[WMState], wm_atom[WMState], 2L,
- ((unsigned char **) &prop)) > 0)
- {
- res = (int) *prop;
- free((long *) prop);
- } else {
- res = hints ? hints->initial_state : NormalState;
- }
-
- if(hints) {
- free(hints);
- }
- return res;
-}
-
static void
init_atoms()
{
diff --git a/cmd/wm/wm.h b/cmd/wm/wm.h
@@ -326,5 +326,4 @@ unsigned int newcolw_of_view(View *v);
/* wm.c */
int win_proto(Window w);
-int win_state(Window w);
int wmii_error_handler(Display *dpy, XErrorEvent *error);