aboutsummaryrefslogtreecommitdiffstats
path: root/xutil.c
diff options
context:
space:
mode:
authorokan2013-12-11 14:16:09 +0000
committerokan2013-12-11 14:16:09 +0000
commitae879f5d1b4867c9ce186f50cbb3cacca3daa284 (patch)
tree47ab45ede914d9d41b59d597c2891bf38066ecc5 /xutil.c
parentbca0ab294bb5e82fd02249f93c1f43ee6fd56934 (diff)
downloadcwm-ae879f5d1b4867c9ce186f50cbb3cacca3daa284.tar.gz
Remove extra work and simplify client state handling.
Diffstat (limited to '')
-rw-r--r--xutil.c29
1 files changed, 1 insertions, 28 deletions
diff --git a/xutil.c b/xutil.c
index be5ec8f..439d7ae 100644
--- a/xutil.c
+++ b/xutil.c
@@ -15,7 +15,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: xutil.c,v 1.78 2013/10/20 02:00:02 okan Exp $
+ * $OpenBSD: xutil.c,v 1.79 2013/12/11 14:16:10 okan Exp $
*/
#include <sys/param.h>
@@ -157,33 +157,6 @@ xu_getstrprop(Window win, Atom atm, char **text) {
return (nitems);
}
-int
-xu_get_wm_state(Window win, int *state)
-{
- long *p = NULL;
-
- if (xu_getprop(win, cwmh[WM_STATE], cwmh[WM_STATE], 2L,
- (unsigned char **)&p) <= 0)
- return (-1);
-
- *state = (int)*p;
- XFree((char *)p);
-
- return (0);
-}
-
-void
-xu_set_wm_state(Window win, int state)
-{
- long dat[2];
-
- dat[0] = state;
- dat[1] = None;
-
- XChangeProperty(X_Dpy, win, cwmh[WM_STATE], cwmh[WM_STATE], 32,
- PropModeReplace, (unsigned char *)dat, 2);
-}
-
/* Root Window Properties */
void
xu_ewmh_net_supported(struct screen_ctx *sc)