From 1614ea5cf93e8443bcee45dc5e86f774db115f8b Mon Sep 17 00:00:00 2001 From: Marco Martin Date: Thu, 12 Jul 2012 13:32:43 +0200 Subject: [PATCH] use the window attribute fot the tooltip test --- dialog.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/dialog.cpp b/dialog.cpp index 9d10c6b70..2eedd99ec 100644 --- a/dialog.cpp +++ b/dialog.cpp @@ -172,8 +172,7 @@ void DialogPrivate::checkBorders(bool updateMaskIfNeeded) //decide about disabling the border attached to the panel //don't cut borders on tooltips - //Qt::ToolTip is 0xc & Qt::Window, so Qt::Window has to be considered - if (applet && (q->windowFlags() & Qt::ToolTip) != Qt::ToolTip) { + if (applet && !q->testAttribute(Qt::WA_X11NetWmWindowTypeToolTip)) { background->getMargins(leftWidth, topHeight, rightWidth, bottomHeight); switch (applet->location()) { @@ -225,7 +224,7 @@ void DialogPrivate::checkBorders(bool updateMaskIfNeeded) } //decide if to disable the other borders - if (q->isVisible() && (q->windowFlags() & Qt::ToolTip) != Qt::ToolTip) { + if (q->isVisible() && !q->testAttribute(Qt::WA_X11NetWmWindowTypeToolTip)) { if (dialogGeom.left() <= avail.left()) { borders &= ~FrameSvg::LeftBorder; }