mirror of
https://github.com/gryf/wmaker.git
synced 2026-01-16 03:34:13 +01:00
Added Expert option: "Close rootmenu when mouse (left or right) is clicked outside focus.
Common WindowMaker's rootmenu behavior if press right mouse button open menu and close only with same button. It's uncomfortably, it patch allows close menu by left or right is clicked outside focus. Changed func "static WMenu*configureMenu(WScreen *scr, WMPropList *definition)" to non-static forglobal use. Added new OPTION_WMAKER for this Expert-option. Changed event.c: for correct work should use initialization func configureMenu afterwMenuDestroy (this is a feature of the event implementation XEvent).
This commit is contained in:
committed by
Carlos R. Mafra
parent
033d2d9a6f
commit
7d423a3a0f
@@ -66,7 +66,6 @@ static WMenu *readMenuPipe(WScreen * scr, char **file_name);
|
||||
static WMenu *readPLMenuPipe(WScreen * scr, char **file_name);
|
||||
static WMenu *readMenuFile(WScreen *scr, const char *file_name);
|
||||
static WMenu *readMenuDirectory(WScreen *scr, const char *title, char **file_name, const char *command);
|
||||
static WMenu *configureMenu(WScreen *scr, WMPropList *definition);
|
||||
static void menu_parser_register_macros(WMenuParser parser);
|
||||
|
||||
typedef struct Shortcut {
|
||||
@@ -1467,7 +1466,7 @@ static WMenu *makeDefaultMenu(WScreen * scr)
|
||||
*
|
||||
*----------------------------------------------------------------------
|
||||
*/
|
||||
static WMenu *configureMenu(WScreen *scr, WMPropList *definition)
|
||||
WMenu *configureMenu(WScreen *scr, WMPropList *definition)
|
||||
{
|
||||
WMenu *menu = NULL;
|
||||
WMPropList *elem;
|
||||
|
||||
Reference in New Issue
Block a user