summaryrefslogtreecommitdiff
path: root/app/cwm/kbfunc.c
diff options
context:
space:
mode:
authorOkan Demirmen <okan@cvs.openbsd.org>2013-01-01 14:19:57 +0000
committerOkan Demirmen <okan@cvs.openbsd.org>2013-01-01 14:19:57 +0000
commitc7c9d155d2e024803cbad71069d1aa57c6208720 (patch)
tree1df3aa23d7faa6d6f027571b126171487193a79b /app/cwm/kbfunc.c
parente2f9e2f8c07631965fee178a3f822045b29f5ebb (diff)
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 'app/cwm/kbfunc.c')
-rw-r--r--app/cwm/kbfunc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/app/cwm/kbfunc.c b/app/cwm/kbfunc.c
index 630052785..47956c5e5 100644
--- a/app/cwm/kbfunc.c
+++ b/app/cwm/kbfunc.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: 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