summaryrefslogtreecommitdiff
path: root/openbox/client_list_menu.c
diff options
context:
space:
mode:
authorDana Jansens <danakj@orodu.net>2007-05-03 20:39:26 +0000
committerDana Jansens <danakj@orodu.net>2007-05-03 20:39:26 +0000
commite0e1d4ba7e150b215b55029ddbff3c824b94caf7 (patch)
treef77339bd42489362112e75ddee8855231c12e6ad /openbox/client_list_menu.c
parent53975abf1220c36ebbab455299a9915477c5a6b8 (diff)
don't show the client menu when its for an invalid window
Diffstat (limited to 'openbox/client_list_menu.c')
-rw-r--r--openbox/client_list_menu.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/openbox/client_list_menu.c b/openbox/client_list_menu.c
index 86a70af4..12c16815 100644
--- a/openbox/client_list_menu.c
+++ b/openbox/client_list_menu.c
@@ -38,7 +38,7 @@ typedef struct
guint desktop;
} DesktopData;
-static void desk_menu_update(ObMenuFrame *frame, gpointer data)
+static gboolean desk_menu_update(ObMenuFrame *frame, gpointer data)
{
ObMenu *menu = frame->menu;
DesktopData *d = data;
@@ -105,6 +105,7 @@ static void desk_menu_update(ObMenuFrame *frame, gpointer data)
if (d->desktop == screen_desktop)
e->data.normal.enabled = FALSE;
}
+ return TRUE; /* always show */
}
/* executes it using the client in the actions, since we set that
@@ -129,7 +130,7 @@ static void desk_menu_destroy(ObMenu *menu, gpointer data)
desktop_menus = g_slist_remove(desktop_menus, menu);
}
-static void self_update(ObMenuFrame *frame, gpointer data)
+static gboolean self_update(ObMenuFrame *frame, gpointer data)
{
ObMenu *menu = frame->menu;
guint i;
@@ -162,6 +163,8 @@ static void self_update(ObMenuFrame *frame, gpointer data)
desktop_menus = g_slist_delete_link(desktop_menus, it);
menu_entry_remove(menu_find_entry_id(menu, i));
}
+
+ return TRUE; /* always show */
}
static void client_dest(ObClient *client, gpointer data)