forked from e16/e16
1
0
Fork 0

Don't mess with destroyed windows.

SVN revision: 15064
This commit is contained in:
Kim Woelders 2005-06-02 17:44:41 +00:00
parent 6c43764470
commit 04f8e4ffcd
3 changed files with 3 additions and 1 deletions

View File

@ -507,6 +507,7 @@ struct _eobj
char sticky;
char floating;
char shown;
char gone;
#if USE_COMPOSITE
char shadow; /* Enable shadows */
unsigned int opacity;

View File

@ -1306,7 +1306,7 @@ ECompMgrWinDel(EObj * eo, Bool gone, Bool do_fade __UNUSED__)
}
else
{
if (Conf_compmgr.mode == ECM_MODE_WINDOW)
if (!eo->gone && Conf_compmgr.mode == ECM_MODE_WINDOW)
XCompositeUnredirectWindow(disp, eo->win, CompositeRedirectManual);
}

View File

@ -227,6 +227,7 @@ void
EobjWindowDestroy(EObj * eo)
{
EDestroyWindow(eo->win);
eo->gone = 1;
EobjDestroy(eo);
}