diff --git a/screenedge.cpp b/screenedge.cpp index 4566cf1859..149abeca56 100644 --- a/screenedge.cpp +++ b/screenedge.cpp @@ -790,7 +790,7 @@ void ScreenEdges::recreateEdges() { QList oldEdges(m_edges); m_edges.clear(); - const QRect fullArea(0, 0, displayWidth(), displayHeight()); + const QRect fullArea = screens()->geometry(); QRegion processedRegion; for (int i=0; icount(); ++i) { const QRegion screen = QRegion(screens()->geometry(i)).subtracted(processedRegion);