Use the availableGeometry to calculate the struts
The virtualGeometry comprises all the screens and it's not what we're aiming for in this case.
This commit is contained in:
parent
653d044292
commit
e5b435f53d
@ -500,7 +500,7 @@ void PanelView::updateStruts()
|
|||||||
|
|
||||||
if (m_visibilityMode == NormalPanel) {
|
if (m_visibilityMode == NormalPanel) {
|
||||||
const QRect thisScreen = corona()->screenGeometry(containment()->screen());
|
const QRect thisScreen = corona()->screenGeometry(containment()->screen());
|
||||||
const QRect wholeScreen = screen()->availableVirtualGeometry();
|
const QRect wholeScreen = screen()->availableGeometry();
|
||||||
|
|
||||||
//Extended struts against a screen edge near to another screen are really harmful, so windows maximized under the panel is a lesser pain
|
//Extended struts against a screen edge near to another screen are really harmful, so windows maximized under the panel is a lesser pain
|
||||||
//TODO: force "windows can cover" in those cases?
|
//TODO: force "windows can cover" in those cases?
|
||||||
@ -579,7 +579,7 @@ void PanelView::updateStruts()
|
|||||||
|
|
||||||
default:
|
default:
|
||||||
//qDebug() << "where are we?";
|
//qDebug() << "where are we?";
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user