From 0dfdf50694d10337defe6dd1c172bb805a4f96b2 Mon Sep 17 00:00:00 2001 From: Martin Duquesnoy Date: Tue, 4 Nov 2008 15:01:02 +0100 Subject: [PATCH] util: Remove getwinstate --- src/util.c | 24 ------------------------ src/wmfs.h | 1 - 2 files changed, 25 deletions(-) diff --git a/src/util.c b/src/util.c index becd762..9b0bc67 100644 --- a/src/util.c +++ b/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) { diff --git a/src/wmfs.h b/src/wmfs.h index 8c3e351..dd5fa86 100644 --- a/src/wmfs.h +++ b/src/wmfs.h @@ -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 */