From a4c347fc7a7832f74b03581d93b44db08a5ed4e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Martin=20Gr=C3=A4=C3=9Flin?= Date: Mon, 7 Dec 2015 14:27:06 +0100 Subject: [PATCH] [wayland] Translate inputTransformation matrix by borderLeft/Top With decorations the ShellClient needs to have another input offset by borderTop and borderLeft. --- shell_client.cpp | 7 +++++++ shell_client.h | 2 ++ 2 files changed, 9 insertions(+) diff --git a/shell_client.cpp b/shell_client.cpp index 98754523ed..4821a7f144 100644 --- a/shell_client.cpp +++ b/shell_client.cpp @@ -835,4 +835,11 @@ void ShellClient::doResizeSync() requestGeometry(moveResizeGeometry()); } +QMatrix4x4 ShellClient::inputTransformation() const +{ + QMatrix4x4 m = Toplevel::inputTransformation(); + m.translate(-borderLeft(), -borderTop()); + return m; +} + } diff --git a/shell_client.h b/shell_client.h index 64fb53ebea..9eb6794505 100644 --- a/shell_client.h +++ b/shell_client.h @@ -116,6 +116,8 @@ public: bool hasTransientPlacementHint() const override; QPoint transientPlacementHint() const override; + QMatrix4x4 inputTransformation() const override; + protected: void addDamage(const QRegion &damage) override; bool belongsToSameApplication(const AbstractClient *other, bool active_hack) const override;