if (e->type == OB_MENU_ENTRY_TYPE_NORMAL)
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 = menu_find_entry_id(menu, LAYER_BOTTOM);
+ e->data.normal.enabled = !frame->client->below;
}
static void send_to_update(ObMenuFrame *frame, gpointer data)
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"));
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);