summaryrefslogtreecommitdiffstats
path: root/src/client
diff options
context:
space:
mode:
authorRob Hall <robxnanocode@outlook.com>2023-12-24 21:46:48 +0000
committerRob Hall <robxnanocode@outlook.com>2024-01-06 11:39:01 +0000
commitc37824eeacda237dbc62f0951dfea1fd2eb5ddb2 (patch)
tree93d011954cd27b7ebac624f984c59ce6ca5bebe5 /src/client
parentd85ebd9fba97ea2dc89278e331bfdd904c09159d (diff)
client: Fix window margin calculation
Don't subtract the size of the window frame margin from the content area. Fixes an issue where an area of the window is unclickable when client-side decorations are in use. Fixes: QTBUG-120392 Pick-to: 6.7 6.6 6.5 Change-Id: I6a89b2d463be084233ea3448cacfbbd09d66b96e Reviewed-by: David Edmundson <davidedmundson@kde.org> Reviewed-by: Kai Uwe Broulik <kde@privat.broulik.de>
Diffstat (limited to 'src/client')
-rw-r--r--src/client/qwaylandwindow.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/qwaylandwindow.cpp b/src/client/qwaylandwindow.cpp
index a03878b57..3980f4efe 100644
--- a/src/client/qwaylandwindow.cpp
+++ b/src/client/qwaylandwindow.cpp
@@ -1350,8 +1350,8 @@ void QWaylandWindow::handleMouseEventWithDecoration(QWaylandInputDevice *inputDe
QMargins marg = frameMargins();
QRect windowRect(0 + marg.left(),
0 + marg.top(),
- geometry().size().width() - marg.right(),
- geometry().size().height() - marg.bottom());
+ geometry().size().width(),
+ geometry().size().height());
if (windowRect.contains(e.local.toPoint()) || mMousePressedInContentArea != Qt::NoButton) {
const QPointF localTranslated = mapFromWlSurface(e.local);
QPointF globalTranslated = e.global;