X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient_list_menu.c;h=12c16815a432fd8899a6139d8a8ab54072dfa371;hb=1361a87bdff4a04c4c5e273bafa7a90c16368b67;hp=86a70af45c6f40dc9bb94b25e8f0567c70f2300e;hpb=e5d6a552a46bce27cbe25c92023094b44c9a8284;p=chaz%2Fopenbox 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)