From 95e348ab314559e1cc686cd78f314906d68cad77 Mon Sep 17 00:00:00 2001 From: Nikos Ntarmos Date: Tue, 8 Jan 2008 16:24:38 +0200 Subject: [PATCH] Don't draw a square on the taglist for skipped windows I tend to prefer to not see a square on the taglist for tags which only have skipped windows. E.g., if I run 'stalonetray --sticky -w/--skip-taskbar', in which case it appears on all tags but not on the tasklist, showing all of the tags as occupied seems somewhat awkward. --- widgets/taglist.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/widgets/taglist.c b/widgets/taglist.c index 2cb42bac..9225bdb7 100644 --- a/widgets/taglist.c +++ b/widgets/taglist.c @@ -20,6 +20,7 @@ */ #include "config.h" +#include "client.h" #include "util.h" #include "widget.h" #include "tag.h" @@ -39,7 +40,7 @@ isoccupied(Tag *t) Client *c; for(c = globalconf.clients; c; c = c->next) - if(is_client_tagged(c, t)) + if(is_client_tagged(c, t) && !c->skip) return True; return False; }