]> Dogcows Code - chaz/openbox/blobdiff - openbox/client_menu.c
Separate theme options for osd prompt buttons.
[chaz/openbox] / openbox / client_menu.c
index 18f847edbd013227cce717b44ed85dce8f5c22f5..fd2549cfd941cef0f690453f0eebeb3ebaa4c632 100644 (file)
@@ -118,7 +118,8 @@ static void client_menu_execute(ObMenuEntry *e, ObMenuFrame *f,
     gint x, y;
     gulong ignore_start;
 
-    g_assert(c);
+    if (!c)
+        return;
 
     if (!config_focus_under_mouse)
         ignore_start = event_start_ignore_all_enters();
@@ -406,7 +407,9 @@ void client_menu_startup(void)
     e->data.normal.mask = ob_rr_theme->max_mask;
     set_icon_color(e);
 
-    menu_add_normal(menu, CLIENT_SHADE, _("_Roll up/down"), NULL, TRUE);
+    e = menu_add_normal(menu, CLIENT_SHADE, _("_Roll up/down"), NULL, TRUE);
+    e->data.normal.mask = ob_rr_theme->shade_mask;
+    set_icon_color(e);
 
     menu_add_normal(menu, CLIENT_DECORATE, _("Un/_Decorate"), NULL, TRUE);
 
This page took 0.024088 seconds and 4 git commands to generate.