Unmap internal windows before destroying.
Only actually needed if compositing is active. Fixes rendering bug with progress bars. SVN revision: 45020
This commit is contained in:
parent
7c514a454a
commit
8180b23268
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2004-2008 Kim Woelders
|
||||
* Copyright (C) 2004-2010 Kim Woelders
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -282,6 +282,10 @@ EobjWindowCreate(int type, int x, int y, int w, int h, int su, const char *name)
|
|||
void
|
||||
EobjWindowDestroy(EObj * eo)
|
||||
{
|
||||
#if USE_COMPOSITE
|
||||
if (eo->shown && !eo->inputonly)
|
||||
EobjUnmap(eo);
|
||||
#endif
|
||||
EobjDestroy(eo);
|
||||
}
|
||||
|
||||
|
|
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (C) 2007-2009 Kim Woelders
|
||||
* Copyright (C) 2007-2010 Kim Woelders
|
||||
*
|
||||
* Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
* of this software and associated documentation files (the "Software"), to
|
||||
|
@ -699,8 +699,7 @@ GlwinExit(void)
|
|||
if (GLWin.eo)
|
||||
{
|
||||
EventCallbackUnregister(EobjGetWin(GLWin.eo), GlwinEvent, &GLWin);
|
||||
EobjUnmap(GLWin.eo);
|
||||
EobjDestroy(GLWin.eo);
|
||||
EobjWindowDestroy(GLWin.eo);
|
||||
GLWin.eo = NULL;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue