mirror of
https://github.com/gryf/wmaker.git
synced 2025-12-20 04:48:06 +01:00
Remove old dirty hack.
This commit is contained in:
12
src/window.c
12
src/window.c
@@ -1187,11 +1187,6 @@ wManageWindow(WScreen *scr, Window window)
|
|||||||
/* If the window must be withdrawed, then do it now.
|
/* If the window must be withdrawed, then do it now.
|
||||||
* Must do some optimization, 'though */
|
* Must do some optimization, 'though */
|
||||||
if (withdraw) {
|
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;
|
wwin->flags.mapped = 0;
|
||||||
wClientSetState(wwin, WithdrawnState, None);
|
wClientSetState(wwin, WithdrawnState, None);
|
||||||
wUnmanageWindow(wwin, True, False);
|
wUnmanageWindow(wwin, True, False);
|
||||||
@@ -1436,13 +1431,6 @@ wUnmanageWindow(WWindow *wwin, Bool restore, Bool destroyed)
|
|||||||
if (wwin->next)
|
if (wwin->next)
|
||||||
wwin->next->prev = wwin->prev;
|
wwin->next->prev = wwin->prev;
|
||||||
else {
|
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 = wwin->prev;
|
||||||
scr->focused_window->next = NULL;
|
scr->focused_window->next = NULL;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user