X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient_list_combined_menu.c;h=f590dc10a992e9e4981df5e77df27b6637f6050d;hb=bf247215bb015dbb4dfa39c38bf020aa815cd306;hp=125845de65641db414b6ebff17272157982a5028;hpb=baa4a878cda78cf7ef9a894b8937c72fa50c897a;p=chaz%2Fopenbox diff --git a/openbox/client_list_combined_menu.c b/openbox/client_list_combined_menu.c index 125845de..f590dc10 100644 --- a/openbox/client_list_combined_menu.c +++ b/openbox/client_list_combined_menu.c @@ -47,10 +47,13 @@ static void self_update(ObMenuFrame *frame, gpointer data) for (desktop = 0; desktop < screen_num_desktops; desktop++) { gboolean empty = TRUE; - menu_add_separator(menu, -1); + /* Don't need a separator at the very top */ + if (desktop > 0) + menu_add_separator(menu, -1); e = menu_add_normal(menu, -1, NULL, NULL); e->data.normal.enabled = FALSE; e->data.normal.label = g_strdup(screen_desktop_names[desktop]); + /* The one at the bottom will always have entries below it though */ menu_add_separator(menu, -1); for (it = focus_order[desktop], i = 0; it; it = g_list_next(it), ++i) { ObClient *c = it->data;