Fixed bug in X11 backend when creating translucent windows.
authorSamuel Rødal <samuel.rodal@nokia.com>
Tue, 3 May 2011 10:36:08 +0000 (12:36 +0200)
committerOlivier Goffart <olivier.goffart@nokia.com>
Tue, 10 May 2011 10:54:54 +0000 (12:54 +0200)
commit978fc98bffc0dea5cbe3cdcd49d48726a681dcfd
tree289cd3422462dfb397a1ea7a380cca146e5a14c5
parent3a0f5d04fce00812cddd44e54ef25f7ab7d9240d
Fixed bug in X11 backend when creating translucent windows.

We forgot to send the ParentAboutToChange event, which meant QGLWidget
didn't destroy the old EGL surface. This could cause two EGL surfaces to
be created for the same QGLWidget, which leads to undefined behaviour on
some platforms.
(cherry picked from commit 5a834d7141cc7d29d022911ccec16e628d94acf1)
src/gui/kernel/qwidget_x11.cpp