From 7314a3aefd33e901cfa1bd4a48eb4e75be4c01e2 Mon Sep 17 00:00:00 2001 From: okan Date: Mon, 25 Aug 2014 12:49:19 +0000 Subject: Implement _NET_WM_STATE_STICKY, bound to CM-s by default; allows any client to 'stick' to all desktops (ewmh speak) or groups - this currently has the same affect as setting a client's group to 'nogroup', with the exception that the client can also be in a group, so when un-sticking, the client will go back to its original group/desktop. --- group.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'group.c') diff --git a/group.c b/group.c index 1290621..3657fad 100644 --- a/group.c +++ b/group.c @@ -207,6 +207,8 @@ group_hidden_state(struct group_ctx *gc) int hidden = 0, same = 0; TAILQ_FOREACH(cc, &gc->clients, group_entry) { + if (cc->flags & CLIENT_STICKY) + continue; if (hidden == ((cc->flags & CLIENT_HIDDEN) ? 1 : 0)) same++; } -- cgit 1.4.1