[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:
parent
d28fba8839
commit
a4c347fc7a
2 changed files with 9 additions and 0 deletions
|
@ -835,4 +835,11 @@ void ShellClient::doResizeSync()
|
|||
requestGeometry(moveResizeGeometry());
|
||||
}
|
||||
|
||||
QMatrix4x4 ShellClient::inputTransformation() const
|
||||
{
|
||||
QMatrix4x4 m = Toplevel::inputTransformation();
|
||||
m.translate(-borderLeft(), -borderTop());
|
||||
return m;
|
||||
}
|
||||
|
||||
}
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue