]> Dogcows Code - chaz/openbox/commitdiff
make the all desktops thinger get disabled too
authorDana Jansens <danakj@orodu.net>
Fri, 17 Oct 2003 06:27:14 +0000 (06:27 +0000)
committerDana Jansens <danakj@orodu.net>
Fri, 17 Oct 2003 06:27:14 +0000 (06:27 +0000)
openbox/client_menu.c

index f36b43902f2289e001ff7bb07aafad87ad55bd2a..e9922bdd30e0274629b19de1a815643aa25f7e05 100644 (file)
@@ -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;
-        }
     }
 }
 
This page took 0.030283 seconds and 4 git commands to generate.