aboutsummaryrefslogtreecommitdiffstats
path: root/xutil.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--xutil.c7
1 files changed, 3 insertions, 4 deletions
diff --git a/xutil.c b/xutil.c
index 603e796..84b564e 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.54 2013/04/14 16:13:17 okan Exp $
+ * $OpenBSD: xutil.c,v 1.55 2013/04/17 13:52:20 okan Exp $
*/
#include <sys/param.h>
@@ -218,15 +218,14 @@ xu_getstate(Window win, int *state)
}
void
-xu_setstate(struct client_ctx *cc, int state)
+xu_setstate(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);
}