add a separator in the client-list-menus above iconic windows

This commit is contained in:
Dana Jansens 2003-08-31 19:56:19 +00:00
parent 7b06426b51
commit ea2f33e9ee

View file

@ -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);