X-Git-Url: https://git.dogcows.com/gitweb?a=blobdiff_plain;f=openbox%2Fclient_menu.c;h=fd2549cfd941cef0f690453f0eebeb3ebaa4c632;hb=171e476ba3faaa3dbd95e9e95f4121fae2db6564;hp=6c3147ae292a029c607ceac35db721c3d4e7dc8d;hpb=7a6485e4bb4ceb88f6279d4bce054c1aa30d45dd;p=chaz%2Fopenbox diff --git a/openbox/client_menu.c b/openbox/client_menu.c index 6c3147ae..fd2549cf 100644 --- a/openbox/client_menu.c +++ b/openbox/client_menu.c @@ -27,8 +27,8 @@ #include "frame.h" #include "moveresize.h" #include "event.h" -#include "prop.h" #include "gettext.h" +#include "obt/prop.h" #include @@ -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(); @@ -150,7 +151,7 @@ static void client_menu_execute(ObMenuEntry *e, ObMenuFrame *f, screen_pointer_pos(&x, &y); moveresize_start(c, x, y, 0, - prop_atoms.net_wm_moveresize_move_keyboard); + OBT_PROP_ATOM(NET_WM_MOVERESIZE_MOVE_KEYBOARD)); break; case CLIENT_RESIZE: /* this needs to grab the keyboard so hide the menu */ @@ -159,7 +160,7 @@ static void client_menu_execute(ObMenuEntry *e, ObMenuFrame *f, screen_pointer_pos(&x, &y); moveresize_start(c, x, y, 0, - prop_atoms.net_wm_moveresize_size_keyboard); + OBT_PROP_ATOM(NET_WM_MOVERESIZE_SIZE_KEYBOARD)); break; case CLIENT_CLOSE: client_close(c); @@ -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);