add a separator in the client-list-menus above iconic windows
This commit is contained in:
parent
7b06426b51
commit
ea2f33e9ee
1 changed files with 6 additions and 0 deletions
|
@ -25,6 +25,7 @@ static void desk_menu_update(ObMenuFrame *frame, gpointer data)
|
||||||
DesktopData *d = data;
|
DesktopData *d = data;
|
||||||
GList *it;
|
GList *it;
|
||||||
gint i;
|
gint i;
|
||||||
|
gboolean icons = FALSE;
|
||||||
|
|
||||||
menu_clear_entries(menu);
|
menu_clear_entries(menu);
|
||||||
|
|
||||||
|
@ -36,6 +37,11 @@ static void desk_menu_update(ObMenuFrame *frame, gpointer data)
|
||||||
ObMenuEntry *e;
|
ObMenuEntry *e;
|
||||||
ObClientIcon *icon;
|
ObClientIcon *icon;
|
||||||
|
|
||||||
|
if (!icons && c->iconic) {
|
||||||
|
icons = TRUE;
|
||||||
|
menu_add_separator(menu, -1);
|
||||||
|
}
|
||||||
|
|
||||||
act = action_from_string("activate");
|
act = action_from_string("activate");
|
||||||
act->data.activate.any.c = c;
|
act->data.activate.any.c = c;
|
||||||
acts = g_slist_prepend(NULL, act);
|
acts = g_slist_prepend(NULL, act);
|
||||||
|
|
Loading…
Reference in a new issue