use the window attribute fot the tooltip test

This commit is contained in:
Marco Martin 2012-07-12 13:32:43 +02:00
parent 8c8d4bfb09
commit 1614ea5cf9

View File

@ -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;
}