From 8226cd7026102e0b249d3f1ff2205a5d9d6e90d2 Mon Sep 17 00:00:00 2001 From: Dana Jansens Date: Fri, 17 Oct 2003 06:27:14 +0000 Subject: [PATCH] make the all desktops thinger get disabled too --- openbox/client_menu.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/openbox/client_menu.c b/openbox/client_menu.c index f36b4390..e9922bdd 100644 --- a/openbox/client_menu.c +++ b/openbox/client_menu.c @@ -128,6 +128,7 @@ static void send_to_update(ObMenuFrame *frame, gpointer data) guint i; GSList *acts; ObAction *act; + ObMenuEntry *e;; menu_clear_entries(menu); @@ -153,13 +154,10 @@ static void send_to_update(ObMenuFrame *frame, gpointer data) act->data.sendto.desk = desk; act->data.sendto.follow = FALSE; acts = g_slist_prepend(NULL, act); - menu_add_normal(menu, desk, name, acts); + e = menu_add_normal(menu, desk, name, acts); - if (frame->client->desktop == desk) { - ObMenuEntry *e = menu_find_entry_id(menu, desk); - g_assert(e); + if (frame->client->desktop == desk) e->data.normal.enabled = FALSE; - } } } -- 2.45.2