forked from e16/e16
1
0
Fork 0

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:
Kim Woelders 2010-01-10 17:17:11 +00:00
parent 7c514a454a
commit 8180b23268
2 changed files with 7 additions and 4 deletions

View File

@ -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);
}

View File

@ -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;
}