aboutsummaryrefslogtreecommitdiffstats
path: root/mousefunc.c
diff options
context:
space:
mode:
authorokan2014-09-17 16:32:53 +0000
committerokan2014-09-17 16:32:53 +0000
commit1c79eb7168bb6b7736c78f333544624a1d838e57 (patch)
treebdf93f8f47527420fa9b3f1dd1cf41dfae747b89 /mousefunc.c
parent9b4db7deaac74c385d0c73b277dcc400c0d5d95a (diff)
downloadcwm-1c79eb7168bb6b7736c78f333544624a1d838e57.tar.gz
Use a similarly named check as sticky for hidden check in a group.
Diffstat (limited to '')
-rw-r--r--mousefunc.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/mousefunc.c b/mousefunc.c
index 5114d9a..9fe8b1b 100644
--- a/mousefunc.c
+++ b/mousefunc.c
@@ -16,7 +16,7 @@
* ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*
- * $OpenBSD: mousefunc.c,v 1.81 2014/09/17 14:31:37 okan Exp $
+ * $OpenBSD: mousefunc.c,v 1.82 2014/09/17 16:32:53 okan Exp $
*/
#include <sys/param.h>
@@ -191,7 +191,7 @@ mousefunc_menu_group(struct client_ctx *cc, union arg *arg)
if (group_holds_only_sticky(gc))
continue;
menuq_add(&menuq, gc,
- group_hidden_state(gc) ? "%d: [%s]" : "%d: %s",
+ group_holds_only_hidden(gc) ? "%d: [%s]" : "%d: %s",
gc->num, gc->name);
}
if (TAILQ_EMPTY(&menuq))
@@ -200,7 +200,7 @@ mousefunc_menu_group(struct client_ctx *cc, union arg *arg)
if ((mi = menu_filter(sc, &menuq, NULL, NULL, 0,
NULL, NULL)) != NULL) {
gc = (struct group_ctx *)mi->ctx;
- (group_hidden_state(gc)) ?
+ (group_holds_only_hidden(gc)) ?
group_show(gc) : group_hide(gc);
}