aboutsummaryrefslogtreecommitdiffstats
path: root/xutil.c
diff options
context:
space:
mode:
authorokan2014-02-07 21:59:56 +0000
committerokan2014-02-07 21:59:56 +0000
commitda2cf40144126f1d08c1d74326c3e1129946674b (patch)
treeb224171228cb5e2249ae3843ee499224905feb94 /xutil.c
parent411961cc6c0b1f83e1733b9679f10e1f7dda8dde (diff)
downloadcwm-da2cf40144126f1d08c1d74326c3e1129946674b.tar.gz
all mapped clients now should have a group, so simplify some cases
Diffstat (limited to 'xutil.c')
-rw-r--r--xutil.c8
1 files changed, 2 insertions, 6 deletions
diff --git a/xutil.c b/xutil.c
index 19623fc..9884148 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.83 2014/01/03 15:29:06 okan Exp $
+ * $OpenBSD: xutil.c,v 1.84 2014/02/07 21:59:56 okan Exp $
*/
#include <sys/param.h>
@@ -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);