From 01f85a09a981eb6c8784d459f729d418c0dd19e3 Mon Sep 17 00:00:00 2001 From: vaxerski Date: Fri, 23 Jun 2023 21:14:04 +0200 Subject: xwayland: send zero scaling to xwayland if enabled --- src/helpers/Vector2D.hpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/helpers/Vector2D.hpp') diff --git a/src/helpers/Vector2D.hpp b/src/helpers/Vector2D.hpp index f2943b28..1178f734 100644 --- a/src/helpers/Vector2D.hpp +++ b/src/helpers/Vector2D.hpp @@ -42,10 +42,10 @@ class Vector2D { Vector2D operator/(const Vector2D& a) const { return Vector2D(this->x / a.x, this->y / a.y); } - - double distance(const Vector2D& other); - Vector2D clamp(const Vector2D& min, const Vector2D& max = Vector2D()); + double distance(const Vector2D& other) const; - Vector2D floor(); + Vector2D clamp(const Vector2D& min, const Vector2D& max = Vector2D()) const; + + Vector2D floor() const; }; -- cgit v1.2.3