]> Dogcows Code - chaz/openbox/commitdiff
add a separator in the client-list-menus above iconic windows
authorDana Jansens <danakj@orodu.net>
Sun, 31 Aug 2003 19:56:19 +0000 (19:56 +0000)
committerDana Jansens <danakj@orodu.net>
Sun, 31 Aug 2003 19:56:19 +0000 (19:56 +0000)
openbox/client_list_menu.c

index 97c40fe52c9e447450aec8f4b530c37b25952efa..65f8ad5ed3de90b35781f459aef5d783712edc3b 100644 (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);
This page took 0.024757 seconds and 4 git commands to generate.