summaryrefslogtreecommitdiff
path: root/kde
diff options
context:
space:
mode:
authorDennis Kasprzyk <onestone@compiz-fusion.org>2010-02-13 00:21:32 +0100
committerDennis kasprzyk <onestone@compiz-fusion.org>2010-02-13 00:24:12 +0100
commit5a25ec8ae0e1c0c7b72fe3b4de2f10a4e8f5a300 (patch)
tree9c332837f6756c4770ab46aa118c19dd6a54db3a /kde
parentef1a3e64d35d7a0f222de79006e17ff6609ce2c7 (diff)
downloadzcomp-5a25ec8ae0e1c0c7b72fe3b4de2f10a4e8f5a300.tar.gz
zcomp-5a25ec8ae0e1c0c7b72fe3b4de2f10a4e8f5a300.tar.bz2
Better detection of tooltip windows (KDE backport).
Diffstat (limited to 'kde')
-rw-r--r--kde/window-decorator-kde4/paintredirector.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/kde/window-decorator-kde4/paintredirector.cpp b/kde/window-decorator-kde4/paintredirector.cpp
index 88d2824..4f09e7d 100644
--- a/kde/window-decorator-kde4/paintredirector.cpp
+++ b/kde/window-decorator-kde4/paintredirector.cpp
@@ -56,8 +56,7 @@ QPixmap PaintRedirector::performPendingPaint()
bool PaintRedirector::isToolTip( QWidget *object ) const
{
// ### We need a more reliable way of doing this
- return object->metaObject()->className() == QString("QWidget") &&
- object->objectName() != QString("decoration widget");
+ return object->windowFlags() & Qt::ToolTip;
}
bool PaintRedirector::eventFilter( QObject* o, QEvent* e )