diff options
author | okan | 2013-01-01 14:19:56 +0000 |
---|---|---|
committer | okan | 2013-01-01 14:19:56 +0000 |
commit | 04e1c4d4ec08c96fbc13dfb72f061b1845f9b785 (patch) | |
tree | d384c0e3da111c126fad8976256719605a2946aa /xutil.c | |
parent | c5eb66fdce461930b3b780e5f09b0f3771474825 (diff) | |
download | cwm-04e1c4d4ec08c96fbc13dfb72f061b1845f9b785.tar.gz |
make num of groups no longer off-by-one; from Alexander Polakov
note that a re-exec of cwm will not rewrite the group number atom of
*existing* clients, so they will remain off-by-one until each client has
its atom updated, or of course a restart of X.
Diffstat (limited to 'xutil.c')
-rw-r--r-- | xutil.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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.51 2012/12/17 18:34:06 okan Exp $ + * $OpenBSD: xutil.c,v 1.52 2013/01/01 14:19:56 okan Exp $ */ #include <sys/param.h> @@ -411,7 +411,7 @@ xu_ewmh_net_wm_desktop(struct client_ctx *cc) long no = 0xffffffff; if (gc) - no = gc->shortcut - 1; + no = gc->shortcut; XChangeProperty(X_Dpy, cc->win, ewmh[_NET_WM_DESKTOP].atom, XA_CARDINAL, 32, PropModeReplace, (unsigned char *)&no, 1); |