From c98a00678c1f3b051c2440b72f58cd9ecfdae70d Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Wed, 30 Aug 2023 17:23:35 +0200 Subject: input: fix xwayland constraint calcs some minor adjustments, fixes #3028 --- src/helpers/WLClasses.hpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/helpers') diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp index 7b7eecbd..dca7f1e0 100644 --- a/src/helpers/WLClasses.hpp +++ b/src/helpers/WLClasses.hpp @@ -166,6 +166,8 @@ struct SConstraint { SMouse* pMouse = nullptr; wlr_pointer_constraint_v1* constraint = nullptr; + bool active = false; + bool hintSet = false; Vector2D positionHint; // the position hint, but will be set to the current cursor pos if not set. @@ -310,8 +312,8 @@ struct SSwipeGesture { double delta = 0; int initialDirection = 0; - float avgSpeed = 0; - int speedPoints = 0; + float avgSpeed = 0; + int speedPoints = 0; CMonitor* pMonitor = nullptr; }; -- cgit v1.2.3