use the window attribute fot the tooltip test
This commit is contained in:
parent
8c8d4bfb09
commit
1614ea5cf9
@ -172,8 +172,7 @@ void DialogPrivate::checkBorders(bool updateMaskIfNeeded)
|
|||||||
|
|
||||||
//decide about disabling the border attached to the panel
|
//decide about disabling the border attached to the panel
|
||||||
//don't cut borders on tooltips
|
//don't cut borders on tooltips
|
||||||
//Qt::ToolTip is 0xc & Qt::Window, so Qt::Window has to be considered
|
if (applet && !q->testAttribute(Qt::WA_X11NetWmWindowTypeToolTip)) {
|
||||||
if (applet && (q->windowFlags() & Qt::ToolTip) != Qt::ToolTip) {
|
|
||||||
background->getMargins(leftWidth, topHeight, rightWidth, bottomHeight);
|
background->getMargins(leftWidth, topHeight, rightWidth, bottomHeight);
|
||||||
|
|
||||||
switch (applet->location()) {
|
switch (applet->location()) {
|
||||||
@ -225,7 +224,7 @@ void DialogPrivate::checkBorders(bool updateMaskIfNeeded)
|
|||||||
}
|
}
|
||||||
|
|
||||||
//decide if to disable the other borders
|
//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()) {
|
if (dialogGeom.left() <= avail.left()) {
|
||||||
borders &= ~FrameSvg::LeftBorder;
|
borders &= ~FrameSvg::LeftBorder;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user