all mapped clients now should have a group, so simplify some cases

This commit is contained in:
okan
2014-02-07 21:59:56 +00:00
parent 3cb81ebeea
commit 2a87320bbf
3 changed files with 3 additions and 7 deletions

View File

@ -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);