1
0
mirror of https://github.com/gryf/wmaker.git synced 2025-12-20 12:58:08 +01:00

Dirty hack to fix user menu problem.

This commit is contained in:
id
1999-04-30 23:57:51 +00:00
parent daeb6d67e2
commit 50e27d6315

View File

@@ -1187,6 +1187,11 @@ wManageWindow(WScreen *scr, Window window)
/* If the window must be withdrawed, then do it now.
* Must do some optimization, 'though */
if (withdraw) {
#ifdef USER_MENU
WApplication *app=NULL;
app = wApplicationOf(wwin->main_window);
if (app) wAppMenuUnmap(app->menu);
#endif /* USER_MENU */
wwin->flags.mapped = 0;
wClientSetState(wwin, WithdrawnState, None);
wUnmanageWindow(wwin, True, False);
@@ -1431,6 +1436,13 @@ wUnmanageWindow(WWindow *wwin, Bool restore, Bool destroyed)
if (wwin->next)
wwin->next->prev = wwin->prev;
else {
#ifdef USER_MENU
if (scr->focused_window) {
WApplication *app=NULL;
app = wApplicationOf(scr->focused_window->main_window);
if (app) wAppMenuUnmap(app->menu);
}
#endif /* USER_MENU */
scr->focused_window = wwin->prev;
scr->focused_window->next = NULL;
}