From ad215303e7e651c0274d219709e109073bc4a032 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Thu, 20 Apr 2006 18:36:23 +0000 Subject: [PATCH] fix #2670 (hilight first entry in menus) and respect keepBorder setting when removing borders from mwm hints --- openbox/client.c | 2 +- openbox/menu.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/openbox/client.c b/openbox/client.c index 930f3ee4..583f0615 100644 --- a/openbox/client.c +++ b/openbox/client.c @@ -1228,7 +1228,7 @@ void client_setup_decor_and_functions(ObClient *self) (self->mwmhints.decorations & OB_MWM_DECOR_TITLE))) /* if the mwm hints request no handle or title, then all decorations are disabled */ - self->decorations = 0; + self->decorations = config_theme_keepborder ? OB_FRAME_DECOR_BORDER : 0; } } diff --git a/openbox/menu.c b/openbox/menu.c index d4e44418..a969da83 100644 --- a/openbox/menu.c +++ b/openbox/menu.c @@ -315,6 +315,8 @@ void menu_show(gchar *name, gint x, gint y, ObClient *client) } if (!menu_frame_show(frame, NULL)) menu_frame_free(frame); + else if (frame->entries) + menu_frame_select_next(frame); } static ObMenuEntry* menu_entry_new(ObMenu *menu, ObMenuEntryType type, gint id) -- 2.45.2