mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-30 02:12:30 +01:00
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).
31 lines
1.1 KiB
C
31 lines
1.1 KiB
C
/* rootmenu.h- user defined menu
|
|
*
|
|
* Window Maker window manager
|
|
*
|
|
* Copyright (c) 2000-2003 Alfredo K. Kojima
|
|
*
|
|
* This program is free software; you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation; either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License along
|
|
* with this program; if not, write to the Free Software Foundation, Inc.,
|
|
* 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
|
|
*/
|
|
|
|
#ifndef WMROOTMENU_H
|
|
#define WMROOTMENU_H
|
|
|
|
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 */
|