[wayland] Translate inputTransformation matrix by borderLeft/Top

With decorations the ShellClient needs to have another input offset
by borderTop and borderLeft.
This commit is contained in:
Martin Gräßlin 2015-12-07 14:27:06 +01:00
parent d28fba8839
commit a4c347fc7a
2 changed files with 9 additions and 0 deletions

View file

@ -835,4 +835,11 @@ void ShellClient::doResizeSync()
requestGeometry(moveResizeGeometry());
}
QMatrix4x4 ShellClient::inputTransformation() const
{
QMatrix4x4 m = Toplevel::inputTransformation();
m.translate(-borderLeft(), -borderTop());
return m;
}
}

View file

@ -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;