summary refs log tree commit diff
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan <okan>2015-07-12 14:31:47 +0000
committerokan <okan>2015-07-12 14:31:47 +0000
commitc0f2d0cc756f5ec7076946179efe2399f026c60a (patch)
treefa885c4df0aac7121c711e55631490023ee3f3ee /mousefunc.c
parent671671959360a30e99b6812f132b6f1f0ff0d6e6 (diff)
parent0d13b7c2205bd40d9fd4db016c8cf96f620c4f8d (diff)
downloadcwm-c0f2d0cc756f5ec7076946179efe2399f026c60a.tar.gz
cwm-c0f2d0cc756f5ec7076946179efe2399f026c60a.tar.xz
cwm-c0f2d0cc756f5ec7076946179efe2399f026c60a.zip
cvsimport
Diffstat (limited to 'mousefunc.c')
-rw-r--r--mousefunc.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/mousefunc.c b/mousefunc.c
index 645e652..b177cdf 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -43,8 +43,8 @@ mousefunc_sweep_calc(struct client_ctx *cc, int x, int y, int mx, int my)
 
 	client_applysizehints(cc);
 
-	cc->geom.x = x <= mx ? x : x - cc->geom.w;
-	cc->geom.y = y <= my ? y : y - cc->geom.h;
+	cc->geom.x = (x <= mx) ? x : x - cc->geom.w;
+	cc->geom.y = (y <= my) ? y : y - cc->geom.h;
 }
 
 static void
@@ -182,13 +182,11 @@ mousefunc_menu_group(struct client_ctx *cc, union arg *arg)
 	TAILQ_FOREACH(gc, &sc->groupq, entry) {
 		if (group_holds_only_sticky(gc))
 			continue;
-		menuq_add(&menuq, gc,
-		    group_holds_only_hidden(gc) ? "%d: [%s]" : "%d: %s",
-		    gc->num, gc->name);
+		menuq_add(&menuq, gc, "%d %s", gc->num, gc->name);
 	}
 
 	if ((mi = menu_filter(sc, &menuq, NULL, NULL, CWM_MENU_LIST,
-	    NULL, NULL)) != NULL) {
+	    NULL, search_print_group)) != NULL) {
 		gc = (struct group_ctx *)mi->ctx;
 		(group_holds_only_hidden(gc)) ?
 		    group_show(gc) : group_hide(gc);