diff options
author | okan <okan> | 2014-09-23 14:25:08 +0000 |
---|---|---|
committer | okan <okan> | 2014-09-23 14:25:08 +0000 |
commit | 845e82015ce9c1467f100a7f3d9c0310b00e353c (patch) | |
tree | 373418947f75ea056e8534940c16d242dec018a9 /xutil.c | |
parent | cb65869d7a01eb093e8a95caea5a6e21b6689f42 (diff) | |
download | cwm-845e82015ce9c1467f100a7f3d9c0310b00e353c.tar.gz cwm-845e82015ce9c1467f100a7f3d9c0310b00e353c.tar.xz cwm-845e82015ce9c1467f100a7f3d9c0310b00e353c.zip |
Update _NET_CURRENT_DESKTOP with the screen's group_active->num.
Diffstat (limited to 'xutil.c')
-rw-r--r-- | xutil.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/xutil.c b/xutil.c index 91ef51b..70186f8 100644 --- a/xutil.c +++ b/xutil.c @@ -274,10 +274,12 @@ xu_ewmh_net_virtual_roots(struct screen_ctx *sc) } void -xu_ewmh_net_current_desktop(struct screen_ctx *sc, long idx) +xu_ewmh_net_current_desktop(struct screen_ctx *sc) { + long num = sc->group_active->num; + XChangeProperty(X_Dpy, sc->rootwin, ewmh[_NET_CURRENT_DESKTOP], - XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&idx, 1); + XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&num, 1); } void |