[Xfce4-commits] <xfdesktop:eric/middle-click-menu> Always have a seperator between workspaces
Eric Koegel
noreply at xfce.org
Fri Aug 30 07:44:01 CEST 2013
Updating branch refs/heads/eric/middle-click-menu
to c551f08ab5c2a7e039285ff159b2fe00b12137b6 (commit)
from 4acec356cb8ce03bfbed5366db3dc14ea0ce2327 (commit)
commit c551f08ab5c2a7e039285ff159b2fe00b12137b6
Author: Eric Koegel <eric.koegel at gmail.com>
Date: Fri Aug 30 08:42:12 2013 +0300
Always have a seperator between workspaces
src/windowlist.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/src/windowlist.c b/src/windowlist.c
index 1b3edd2..f228ca3 100644
--- a/src/windowlist.c
+++ b/src/windowlist.c
@@ -220,7 +220,6 @@ windowlist_populate(XfceDesktop *desktop,
WnckWindow *wnck_window;
gint w, h;
PangoFontDescription *italic_font_desc;
- gboolean is_empty_workspace;
if(!show_windowlist)
return;
@@ -304,7 +303,7 @@ windowlist_populate(XfceDesktop *desktop,
}
windows = wnck_screen_get_windows_stacked(wnck_screen);
- is_empty_workspace = TRUE;
+
for(l = windows; l; l = l->next) {
wnck_window = l->data;
@@ -327,7 +326,7 @@ windowlist_populate(XfceDesktop *desktop,
mi = menu_item_from_wnck_window(wnck_window, w, h);
if(!mi)
continue;
- is_empty_workspace = FALSE;
+
if(wnck_workspace != active_workspace
&& (!wnck_window_is_sticky(wnck_window) || wnck_workspace != active_workspace))
{
@@ -346,7 +345,7 @@ windowlist_populate(XfceDesktop *desktop,
G_CALLBACK(mi_destroyed_cb), wnck_window);
}
- if(!wl_submenus && !is_empty_workspace) {
+ if(!wl_submenus) {
mi = gtk_separator_menu_item_new();
gtk_widget_show(mi);
gtk_menu_shell_append(GTK_MENU_SHELL(submenu), mi);
More information about the Xfce4-commits
mailing list