aboutsummaryrefslogtreecommitdiffstats
path: root/kbfunc.c
diff options
context:
space:
mode:
authorokan2013-01-01 14:19:56 +0000
committerokan2013-01-01 14:19:56 +0000
commit04e1c4d4ec08c96fbc13dfb72f061b1845f9b785 (patch)
treed384c0e3da111c126fad8976256719605a2946aa /kbfunc.c
parentc5eb66fdce461930b3b780e5f09b0f3771474825 (diff)
downloadcwm-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 'kbfunc.c')
-rw-r--r--kbfunc.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/kbfunc.c b/kbfunc.c
index 6300527..47956c5 100644
--- a/kbfunc.c
+++ b/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