diff --git a/screenedge.cpp b/screenedge.cpp index 78a0af0189..19a394b7a0 100644 --- a/screenedge.cpp +++ b/screenedge.cpp @@ -727,7 +727,7 @@ ScreenEdges::ScreenEdges(QObject *parent) , m_actionLeft(ElectricActionNone) , m_gestureRecognizer(new GestureRecognizer(this)) { - m_cornerOffset = (Screens::self()->physicalDpiX(0) + Screens::self()->physicalDpiX(0) + 5) / 6; + m_cornerOffset = (Screens::self()->physicalDpiX(0) + Screens::self()->physicalDpiY(0) + 5) / 6; connect(workspace(), &Workspace::clientRemoved, this, &ScreenEdges::deleteEdgeForClient); }