aboutsummaryrefslogtreecommitdiffstats
path: root/group.c
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--group.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/group.c b/group.c
index e341c8c..473aff8 100644
--- a/group.c
+++ b/group.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: group.c,v 1.94 2014/08/24 15:37:45 okan Exp $
+ * $OpenBSD: group.c,v 1.95 2014/08/25 12:49:19 okan Exp $
*/
#include <sys/param.h>
@@ -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++;
}