diff options
author | Samuel Rødal <sroedal@trolltech.com> | 2009-10-21 14:58:44 (GMT) |
---|---|---|
committer | Samuel Rødal <sroedal@trolltech.com> | 2009-10-22 11:49:20 (GMT) |
commit | 62cf25df02d2cce8957c5942b467dbbf050a763d (patch) | |
tree | cf7192618ad3d4ba79583a98fa24962a28dd7a28 /src/gui | |
parent | a7f377e8a20ee35d8bda55b2b13c9607f9ddfb3a (diff) | |
download | Qt-62cf25df02d2cce8957c5942b467dbbf050a763d.zip Qt-62cf25df02d2cce8957c5942b467dbbf050a763d.tar.gz Qt-62cf25df02d2cce8957c5942b467dbbf050a763d.tar.bz2 |
Fixed regression in translucent window creation on X11.
When setting the TranslucentBackground flag after the window has been
created, we should check whether the widget has a native window id, and
not the WA_NativeWindow attribute which doesn't seem to be set by
default for top-level widgets.
Reviewed-by: Trond
Diffstat (limited to 'src/gui')
-rw-r--r-- | src/gui/kernel/qwidget_x11.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/gui/kernel/qwidget_x11.cpp b/src/gui/kernel/qwidget_x11.cpp index 663178f..28676da 100644 --- a/src/gui/kernel/qwidget_x11.cpp +++ b/src/gui/kernel/qwidget_x11.cpp @@ -950,7 +950,7 @@ static void qt_x11_recreateWidget(QWidget *widget) static void qt_x11_recreateNativeWidgetsRecursive(QWidget *widget) { - if (widget->testAttribute(Qt::WA_NativeWindow)) + if (widget->internalWinId()) qt_x11_recreateWidget(widget); const QObjectList &children = widget->children(); |