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:
parent
844cd5444d
commit
75c8ae4487
|
@ -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),
|
||||
|
|
Loading…
Reference in New Issue