From 2a87320bbf34457b79c55ad95d92a5eda4465073 Mon Sep 17 00:00:00 2001 From: okan Date: Fri, 7 Feb 2014 21:59:56 +0000 Subject: all mapped clients now should have a group, so simplify some cases --- xutil.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) (limited to 'xutil.c') diff --git a/xutil.c b/xutil.c index 43c64fb..b7df70f 100644 --- a/xutil.c +++ b/xutil.c @@ -291,11 +291,7 @@ xu_ewmh_net_desktop_names(struct screen_ctx *sc, char *data, int n) void xu_ewmh_net_wm_desktop(struct client_ctx *cc) { - struct group_ctx *gc = cc->group; - long no = 0xffffffff; - - if (gc) - no = gc->shortcut; + int no = cc->group->shortcut; XChangeProperty(X_Dpy, cc->win, ewmh[_NET_WM_DESKTOP], XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&no, 1); -- cgit 1.4.1