From e5b435f53dcba9947b1a414d08b25956cf1a928d Mon Sep 17 00:00:00 2001 From: Aleix Pol Date: Wed, 18 Dec 2013 01:11:13 +0100 Subject: [PATCH] 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. --- src/shell/panelview.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/shell/panelview.cpp b/src/shell/panelview.cpp index c46b6c7cc..1748ec3bf 100644 --- a/src/shell/panelview.cpp +++ b/src/shell/panelview.cpp @@ -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; } }