mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-19 04:20:27 +01:00
Enable usermenu
This patch enables the usermenu when the application is launched and the usermenu file exists. Signed-off-by: Rodolfo García Peñas (kix) <kix@kix.es>
This commit is contained in:
committed by
Carlos R. Mafra
parent
2fec5f9f28
commit
97189ce2cc
@@ -225,6 +225,7 @@ void wSetFocusTo(WScreen *scr, WWindow *wwin)
|
|||||||
wUserMenuRefreshInstances(napp->menu, wwin);
|
wUserMenuRefreshInstances(napp->menu, wwin);
|
||||||
#endif /* USER_MENU */
|
#endif /* USER_MENU */
|
||||||
|
|
||||||
|
/* kix: Only menu map with mouse, not alt+tab! */
|
||||||
if (wwin->flags.mapped)
|
if (wwin->flags.mapped)
|
||||||
wAppMenuMap(napp->menu, wwin);
|
wAppMenuMap(napp->menu, wwin);
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -129,6 +129,8 @@ WApplication *wApplicationCreate(WWindow * wwin)
|
|||||||
#ifdef USER_MENU
|
#ifdef USER_MENU
|
||||||
if (!wapp->menu)
|
if (!wapp->menu)
|
||||||
wapp->menu = wUserMenuGet(scr, wapp->main_window_desc);
|
wapp->menu = wUserMenuGet(scr, wapp->main_window_desc);
|
||||||
|
|
||||||
|
wAppMenuMap(wapp->menu, wwin);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
/* Set application wide attributes from the leader */
|
/* Set application wide attributes from the leader */
|
||||||
|
|||||||
Reference in New Issue
Block a user