From 8fd318286917224fccf1e8b9c273207ea257ca7d Mon Sep 17 00:00:00 2001 From: David Palacio Date: Tue, 4 Oct 2011 10:30:28 -0500 Subject: [PATCH] Ignore desktop clients on taglist widget Make the taglist widget skip unstickied and focused desktop clients for status update by: * Ignoring focused client if it is of desktop type * Returning a list of clients from tag.clients without clients of desktop type. Signed-off-by: Uli Schlachter --- lib/awful/widget/taglist.lua.in | 2 +- tag.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/awful/widget/taglist.lua.in b/lib/awful/widget/taglist.lua.in index b3aceb49e..5cafa299c 100644 --- a/lib/awful/widget/taglist.lua.in +++ b/lib/awful/widget/taglist.lua.in @@ -128,7 +128,7 @@ function label.all(t, args) bg_color = bg_focus fg_color = fg_focus end - if sel then + if sel and sel.type ~= "desktop" then if taglist_squares_sel then -- Check that the selected clients is tagged with 't'. local seltags = sel:tags() diff --git a/tag.c b/tag.c index e8a98f939..ad8aca4ba 100644 --- a/tag.c +++ b/tag.c @@ -397,6 +397,8 @@ luaA_tag_clients(lua_State *L) lua_createtable(L, clients->len, 0); for(i = 0; i < clients->len; i++) { + if(clients->tab[i]->type == WINDOW_TYPE_DESKTOP) + continue; luaA_object_push(L, clients->tab[i]); lua_rawseti(L, -2, i + 1); }