Fix focus on window unmap.

SVN revision: 13636
This commit is contained in:
Kim Woelders 2005-03-06 12:58:25 +00:00
parent e3494107c6
commit 4fdfaec212
1 changed files with 7 additions and 7 deletions

View File

@ -1074,6 +1074,12 @@ EwinEventUnmap(EWin * ewin)
if (ewin->state == EWIN_STATE_WITHDRAWN)
return;
if (ewin->iconified)
ewin->state = EWIN_STATE_ICONIC;
else
ewin->state = EWIN_STATE_WITHDRAWN;
ewin->shown = 0;
ActionsEnd(ewin);
if (ewin == GetContextEwin())
@ -1093,7 +1099,6 @@ EwinEventUnmap(EWin * ewin)
Mode.doingslide = 0;
}
ewin->shown = 0;
/* FIXME - This is to sync the client.win EXID mapped state */
EUnmapWindow(ewin->client.win);
EUnmapWindow(EoGetWin(ewin));
@ -1101,12 +1106,7 @@ EwinEventUnmap(EWin * ewin)
ModulesSignal(ESIGNAL_EWIN_UNMAP, ewin);
if (ewin->iconified)
{
ewin->state = EWIN_STATE_ICONIC;
return;
}
ewin->state = EWIN_STATE_WITHDRAWN;
return;
if (ewin->Close)
ewin->Close(ewin);