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:
Aleix Pol 2013-12-18 01:11:13 +01:00
parent 653d044292
commit e5b435f53d

View File

@ -500,7 +500,7 @@ void PanelView::updateStruts()
if (m_visibilityMode == NormalPanel) {
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
//TODO: force "windows can cover" in those cases?
@ -579,7 +579,7 @@ void PanelView::updateStruts()
default:
//qDebug() << "where are we?";
break;
break;
}
}