From 8fd1914f83470cd0f008ee489ae77192cab58bde Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Sat, 28 Aug 2021 15:35:13 +0300 Subject: [PATCH] Port Edge to Platform::outputAt() --- src/screenedge.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/screenedge.cpp b/src/screenedge.cpp index f686699f9c..7fcfb7c2b7 100644 --- a/src/screenedge.cpp +++ b/src/screenedge.cpp @@ -19,6 +19,7 @@ #include "screenedge.h" // KWin +#include "abstract_output.h" #include "gestures.h" #include #include "cursor.h" @@ -516,8 +517,9 @@ void Edge::setGeometry(const QRect &geometry) doGeometryUpdate(); if (isScreenEdge()) { + const AbstractOutput *output = kwinApp()->platform()->outputAt(m_geometry.center()); m_gesture->setStartGeometry(m_geometry); - m_gesture->setMinimumDelta(screens()->size(screens()->number(m_geometry.center())) * 0.2); + m_gesture->setMinimumDelta(output->geometry().size() * 0.2); } }