Fix bug on X11 with WA_TranslucentBackground and native child windows.
authorGatis Paeglis <gatis.paeglis@digia.com>
Tue, 5 Nov 2013 11:06:28 +0000 (12:06 +0100)
committerThe Qt Project <gerrit-noreply@qt-project.org>
Fri, 10 Jan 2014 14:37:51 +0000 (15:37 +0100)
commitb088e4827f427189334e8a1c5b4f2b8b0b713fc2
treee792c60db729c186f739b9e8e1553d9184272c58
parenteb5c0f4b1266702c016b032e281bb92a3a642da6
Fix bug on X11 with WA_TranslucentBackground and native child windows.

The native child windows need to inherit the parent's visual in order
to have a translucent background as well.

Surface with type QSurface::OpenGLSurface should not be forced to use
the parent window's visual - the parent visual for instance, might not
even be GL capable.

Changing WA_TranslucentBackground during runtime is not supported, for
two reasons:

1) Other platform plugins seem not to support it
2) It would require recreating X windows.

Task-number: QTBUG-29625

Change-Id: Ic1474dd2de99069027481c7db6bf865f9b8d616d
Reviewed-by: Jørgen Lind <jorgen.lind@digia.com>
src/plugins/platforms/xcb/qxcbwindow.cpp
src/widgets/kernel/qwidget_qpa.cpp