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 /kbfunc.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 '')
-rw-r--r-- | kbfunc.c | 8 |
1 files changed, 4 insertions, 4 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: kbfunc.c,v 1.71 2012/12/17 23:54:57 okan Exp $ + * $OpenBSD: kbfunc.c,v 1.72 2013/01/01 14:19:56 okan Exp $ */ #include <sys/param.h> @@ -406,13 +406,13 @@ kbfunc_client_delete(struct client_ctx *cc, union arg *arg) void kbfunc_client_group(struct client_ctx *cc, union arg *arg) { - group_hidetoggle(cc->sc, KBTOGROUP(arg->i)); + group_hidetoggle(cc->sc, arg->i); } void kbfunc_client_grouponly(struct client_ctx *cc, union arg *arg) { - group_only(cc->sc, KBTOGROUP(arg->i)); + group_only(cc->sc, arg->i); } void @@ -440,7 +440,7 @@ kbfunc_client_grouptoggle(struct client_ctx *cc, union arg *arg) void kbfunc_client_movetogroup(struct client_ctx *cc, union arg *arg) { - group_movetogroup(cc, KBTOGROUP(arg->i)); + group_movetogroup(cc, arg->i); } void |