X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient_list_menu.c;h=351790be7b9c14e3932551443c7b413980e81b89;hb=1c70f6b66740e40432974e26d65d857a2a8a97c5;hp=86a70af45c6f40dc9bb94b25e8f0567c70f2300e;hpb=e5d6a552a46bce27cbe25c92023094b44c9a8284;p=chaz%2Fopenbox diff --git a/openbox/client_list_menu.c b/openbox/client_list_menu.c index 86a70af4..351790be 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,11 +105,13 @@ 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 when we make the actions! */ -static void desk_menu_execute(ObMenuEntry *self, guint state, gpointer data, +static void desk_menu_execute(ObMenuEntry *self, ObMenuFrame *f, + ObClient *c, guint state, gpointer data, Time time) { ObAction *a; @@ -129,7 +131,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 +164,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)