diff options
author | Olivier Goffart <ogoffart@trolltech.com> | 2009-04-03 11:29:55 (GMT) |
---|---|---|
committer | Olivier Goffart <ogoffart@trolltech.com> | 2009-04-03 12:07:41 (GMT) |
commit | ee3ed6a5ae30b8283c9077f0af23863440675a19 (patch) | |
tree | e880a7425748f1e8d2db5af372a42114fa245a6a /src/gui/kernel | |
parent | 10f0b31dd1b3193bf4c068edde5979881c82ece7 (diff) | |
download | Qt-ee3ed6a5ae30b8283c9077f0af23863440675a19.zip Qt-ee3ed6a5ae30b8283c9077f0af23863440675a19.tar.gz Qt-ee3ed6a5ae30b8283c9077f0af23863440675a19.tar.bz2 |
Do not loose WindowType flags when setting translucent background in X11
This fixes KRunner on XMonad. The Qt::Dialog flag of the krunner dialog
was lost when the Qt::WA_TranslucentBackground was set, leading to
incorrect behaviour in some window manager (such as xmonad)
Reviewed-by: Samuel
Diffstat (limited to 'src/gui/kernel')
-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 e71bc2f..ea8af93 100644 --- a/src/gui/kernel/qwidget_x11.cpp +++ b/src/gui/kernel/qwidget_x11.cpp @@ -898,7 +898,7 @@ void QWidgetPrivate::x11UpdateIsOpaque() bool visible = q->isVisible(); if (visible) q->hide(); - q->setParent(q->parentWidget(), q->windowFlags() & ~Qt::WindowType_Mask); + q->setParent(q->parentWidget(), q->windowFlags()); q->move(pos); if (visible) q->show(); |