]> Dogcows Code - chaz/openbox/blobdiff - plugins/menu/client_menu.c
add window placement routines to the kernel
[chaz/openbox] / plugins / menu / client_menu.c
index 32277047c2da05c4e43e6660eb46072eca84cf62..1cbf097d080f2f61294714de130823f78f282678 100644 (file)
@@ -83,11 +83,14 @@ static void layer_update(ObMenuFrame *frame, gpointer data)
             e->data.normal.enabled = !!frame->client;
     }
 
+    if (!frame->client)
+        return;
+
     e = menu_find_entry_id(menu, LAYER_TOP);
     e->data.normal.enabled = !frame->client->above;
 
     e = menu_find_entry_id(menu, LAYER_NORMAL);
-    e->data.normal.enabled = !(frame->client->above || frame->client->below);
+    e->data.normal.enabled = (frame->client->above || frame->client->below);
 
     e = menu_find_entry_id(menu, LAYER_BOTTOM);
     e->data.normal.enabled = !frame->client->below;
@@ -162,7 +165,7 @@ void plugin_startup()
     acts = g_slist_prepend(NULL, action_from_string("Iconify"));
     menu_add_normal(CLIENT_MENU_NAME, CLIENT_ICONIFY, _("Iconify"), acts);
 
-    acts = g_slist_prepend(NULL, action_from_string("Maximize"));
+    acts = g_slist_prepend(NULL, action_from_string("ToggleMaximizeFull"));
     menu_add_normal(CLIENT_MENU_NAME, CLIENT_MAXIMIZE, _("Maximize"), acts);
 
     acts = g_slist_prepend(NULL, action_from_string("Raise"));
@@ -172,7 +175,7 @@ void plugin_startup()
     menu_add_normal(CLIENT_MENU_NAME, CLIENT_LOWER, _("Lower to bottom"),acts);
 
     acts = g_slist_prepend(NULL, action_from_string("ToggleShade"));
-    menu_add_normal(CLIENT_MENU_NAME, CLIENT_SHADE, _("(Un)Shade"), acts);
+    menu_add_normal(CLIENT_MENU_NAME, CLIENT_SHADE, _("Roll up/down"), acts);
 
     acts = g_slist_prepend(NULL, action_from_string("ToggleDecorations"));
     menu_add_normal(CLIENT_MENU_NAME, CLIENT_DECORATE, _("Decorate"), acts);
This page took 0.022935 seconds and 4 git commands to generate.