From 9e65d6521af3fcd684942c774a2e30e1ad40b8bd Mon Sep 17 00:00:00 2001 From: okan Date: Sun, 11 Apr 2010 16:51:26 +0000 Subject: clean up a few xu_* functions to just accept what they need (Window). ok oga@ --- client.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'client.c') diff --git a/client.c b/client.c index cc457e4..a7beb2e 100644 --- a/client.c +++ b/client.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. * - * $Id: client.c,v 1.74 2010/02/02 19:28:46 stsp Exp $ + * $Id: client.c,v 1.75 2010/04/11 16:51:26 okan Exp $ */ #include @@ -495,7 +495,7 @@ client_update(struct client_ctx *cc) int i; long n; - if ((n = xu_getprop(cc, WM_PROTOCOLS, + if ((n = xu_getprop(cc->win, WM_PROTOCOLS, XA_ATOM, 20L, (u_char **)&p)) <= 0) return; @@ -512,7 +512,7 @@ void client_send_delete(struct client_ctx *cc) { if (cc->xproto & CLIENT_PROTO_DELETE) - xu_sendmsg(cc, WM_PROTOCOLS, WM_DELETE_WINDOW); + xu_sendmsg(cc->win, WM_PROTOCOLS, WM_DELETE_WINDOW); else XKillClient(X_Dpy, cc->win); } @@ -814,7 +814,7 @@ client_gethints(struct client_ctx *cc) cc->app_class = xch.res_class; } - if (xu_getprop(cc, _MOTIF_WM_HINTS, _MOTIF_WM_HINTS, + if (xu_getprop(cc->win, _MOTIF_WM_HINTS, _MOTIF_WM_HINTS, PROP_MWM_HINTS_ELEMENTS, (u_char **)&mwmh) == MWM_NUMHINTS) if (mwmh->flags & MWM_HINTS_DECORATIONS && !(mwmh->decorations & MWM_DECOR_ALL) && -- cgit v1.2.3-2-gb3c3