Fix segv when new client is destroyed before being mapped.

Seen with ROX-Filer when using rename dialog.

Also fix compositing in this case.

SVN revision: 62760
This commit is contained in:
Kim Woelders 2011-08-24 20:45:11 +00:00
parent 844cd5444d
commit 75c8ae4487
1 changed files with 5 additions and 2 deletions

View File

@ -380,8 +380,11 @@ EwinDestroy(EWin * ewin)
EwinUnmap1(ewin);
if (ewin->state.state == EWIN_STATE_MAPPED)
EwinUnmap2(ewin);
if (EoIsMapped(ewin))
{
EoUnmap(ewin);
EwinUnmap2(ewin);
}
if (EDebug(EDBUG_TYPE_EWINS))
Eprintf("EwinDestroy %#lx st=%d: %s\n", EwinGetClientXwin(ewin),