1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-30 10:22:34 +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:
Alexander Komarov
2020-09-09 13:29:11 +03:00
committed by Carlos R. Mafra
parent 033d2d9a6f
commit 7d423a3a0f
7 changed files with 26 additions and 5 deletions

View File

@@ -25,5 +25,6 @@
Bool wRootMenuPerformShortcut(XEvent * event);
void wRootMenuBindShortcuts(Window window);
void OpenRootMenu(WScreen * scr, int x, int y, int keyboard);
WMenu *configureMenu(WScreen *scr, WMPropList *definition);
#endif /* WMROOTMENU_H */