summary refs log tree commit diff
path: root/xutil.c
diff options
context:
space:
mode:
authoroga <oga>2010-04-12 16:17:46 +0000
committeroga <oga>2010-04-12 16:17:46 +0000
commitf769df540d901b5b113a30de5356098aab81f427 (patch)
tree5c915430264e1b434b82eef9e8f4558e0a15fdf1 /xutil.c
parentd90ab511119139a86022ee8973ce31c6681e2548 (diff)
parenta292c96977547511316acc8e20798f7c2b1edb19 (diff)
downloadcwm-f769df540d901b5b113a30de5356098aab81f427.tar.gz
cwm-f769df540d901b5b113a30de5356098aab81f427.tar.xz
cwm-f769df540d901b5b113a30de5356098aab81f427.zip
cvsimport
Diffstat (limited to 'xutil.c')
-rw-r--r--xutil.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/xutil.c b/xutil.c
index e59bc42..cbe7562 100644
--- a/xutil.c
+++ b/xutil.c
@@ -119,29 +119,29 @@ xu_key_ungrab(Window win, int mask, int keysym)
 }
 
 void
-xu_sendmsg(struct client_ctx *cc, Atom atm, long val)
+xu_sendmsg(Window win, Atom atm, long val)
 {
 	XEvent	 e;
 
 	memset(&e, 0, sizeof(e));
 	e.xclient.type = ClientMessage;
-	e.xclient.window = cc->win;
+	e.xclient.window = win;
 	e.xclient.message_type = atm;
 	e.xclient.format = 32;
 	e.xclient.data.l[0] = val;
 	e.xclient.data.l[1] = CurrentTime;
 
-	XSendEvent(X_Dpy, cc->win, False, 0, &e);
+	XSendEvent(X_Dpy, win, False, 0, &e);
 }
 
 int
-xu_getprop(struct client_ctx *cc, Atom atm, Atom type, long len, u_char **p)
+xu_getprop(Window win, Atom atm, Atom type, long len, u_char **p)
 {
 	Atom	 realtype;
 	u_long	 n, extra;
 	int	 format;
 
-	if (XGetWindowProperty(X_Dpy, cc->win, atm, 0L, len, False, type,
+	if (XGetWindowProperty(X_Dpy, win, atm, 0L, len, False, type,
 	    &realtype, &format, &n, &extra, p) != Success || *p == NULL)
 		return (-1);
 
@@ -156,7 +156,7 @@ xu_getstate(struct client_ctx *cc, int *state)
 {
 	long	*p = NULL;
 
-	if (xu_getprop(cc, WM_STATE, WM_STATE, 2L, (u_char **)&p) <= 0)
+	if (xu_getprop(cc->win, WM_STATE, WM_STATE, 2L, (u_char **)&p) <= 0)
 		return (-1);
 
 	*state = (int)*p;