fix #2670 (hilight first entry in menus) and respect keepBorder setting when removing borders from mwm hints
This commit is contained in:
parent
0efe52a12b
commit
ad215303e7
2 changed files with 3 additions and 1 deletions
|
@ -1228,7 +1228,7 @@ void client_setup_decor_and_functions(ObClient *self)
|
||||||
(self->mwmhints.decorations & OB_MWM_DECOR_TITLE)))
|
(self->mwmhints.decorations & OB_MWM_DECOR_TITLE)))
|
||||||
/* if the mwm hints request no handle or title, then all
|
/* if the mwm hints request no handle or title, then all
|
||||||
decorations are disabled */
|
decorations are disabled */
|
||||||
self->decorations = 0;
|
self->decorations = config_theme_keepborder ? OB_FRAME_DECOR_BORDER : 0;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -315,6 +315,8 @@ void menu_show(gchar *name, gint x, gint y, ObClient *client)
|
||||||
}
|
}
|
||||||
if (!menu_frame_show(frame, NULL))
|
if (!menu_frame_show(frame, NULL))
|
||||||
menu_frame_free(frame);
|
menu_frame_free(frame);
|
||||||
|
else if (frame->entries)
|
||||||
|
menu_frame_select_next(frame);
|
||||||
}
|
}
|
||||||
|
|
||||||
static ObMenuEntry* menu_entry_new(ObMenu *menu, ObMenuEntryType type, gint id)
|
static ObMenuEntry* menu_entry_new(ObMenu *menu, ObMenuEntryType type, gint id)
|
||||||
|
|
Loading…
Reference in a new issue