From d2f3147fd27ddb6b49f98592d4148fff306b0ebe Mon Sep 17 00:00:00 2001 From: David Rosca Date: Mon, 28 Mar 2016 20:25:20 +0200 Subject: [PATCH] PanelView: Skip invalid screen geometries in updateStruts My second (internal) screen is disabled and has 0x0 size. This fixes setting the struts for panel and correctly calculating the available desktop area. CCBUG: 348043 Differential Revision: https://phabricator.kde.org/D1238 --- shell/panelview.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/shell/panelview.cpp b/shell/panelview.cpp index 4ece9aaf4..7809d841f 100644 --- a/shell/panelview.cpp +++ b/shell/panelview.cpp @@ -912,6 +912,9 @@ void PanelView::updateStruts() } const QRect otherScreen = corona()->screenGeometry(i); + if (!otherScreen.isValid()) { + continue; + } switch (location()) {