From: Dana Jansens Date: Sun, 31 Aug 2003 19:56:19 +0000 (+0000) Subject: add a separator in the client-list-menus above iconic windows X-Git-Url: https://git.brokenzipper.com/gitweb?a=commitdiff_plain;h=ea2f33e9ee65856faef6617d013270e9898d9911;p=chaz%2Fopenbox add a separator in the client-list-menus above iconic windows --- diff --git a/openbox/client_list_menu.c b/openbox/client_list_menu.c index 97c40fe5..65f8ad5e 100644 --- a/openbox/client_list_menu.c +++ b/openbox/client_list_menu.c @@ -25,6 +25,7 @@ static void desk_menu_update(ObMenuFrame *frame, gpointer data) DesktopData *d = data; GList *it; gint i; + gboolean icons = FALSE; menu_clear_entries(menu); @@ -36,6 +37,11 @@ static void desk_menu_update(ObMenuFrame *frame, gpointer data) ObMenuEntry *e; ObClientIcon *icon; + if (!icons && c->iconic) { + icons = TRUE; + menu_add_separator(menu, -1); + } + act = action_from_string("activate"); act->data.activate.any.c = c; acts = g_slist_prepend(NULL, act);