about summary refs log tree commit diff
path: root/xutil.c
diff options
context:
space:
mode:
authorokan <okan>2013-04-30 21:12:20 +0000
committerokan <okan>2013-04-30 21:12:20 +0000
commit843f18aaee1550344b8521d95d952502e064c5f0 (patch)
treed5e021ff49f98521e97d996c12a4eda98e797492 /xutil.c
parent6f185bb03c3ba0928ba6254485c710103379bd1a (diff)
parent5ab3b373d39c333de5774a9503c450fc9fccd814 (diff)
downloadcwm-843f18aaee1550344b8521d95d952502e064c5f0.tar.gz
cwm-843f18aaee1550344b8521d95d952502e064c5f0.tar.xz
cwm-843f18aaee1550344b8521d95d952502e064c5f0.zip
cvsimport
Diffstat (limited to 'xutil.c')
-rw-r--r--xutil.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/xutil.c b/xutil.c
index 108421e..f8bd200 100644
--- a/xutil.c
+++ b/xutil.c
@@ -203,7 +203,7 @@ xu_getstrprop(Window win, Atom atm, char **text) {
 }
 
 int
-xu_getstate(Window win, int *state)
+xu_get_wm_state(Window win, int *state)
 {
 	long	*p = NULL;
 
@@ -218,15 +218,14 @@ xu_getstate(Window win, int *state)
 }
 
 void
-xu_setstate(struct client_ctx *cc, int state)
+xu_set_wm_state(Window win, int state)
 {
 	long	 dat[2];
 
 	dat[0] = state;
 	dat[1] = None;
 
-	cc->state = state;
-	XChangeProperty(X_Dpy, cc->win,
+	XChangeProperty(X_Dpy, win,
 	    cwmh[WM_STATE].atom, cwmh[WM_STATE].atom, 32,
 	    PropModeReplace, (unsigned char *)dat, 2);
 }