diff options
| author | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-08-30 17:23:35 +0200 |
|---|---|---|
| committer | vaxerski <43317083+vaxerski@users.noreply.github.com> | 2023-08-30 17:23:35 +0200 |
| commit | c98a00678c1f3b051c2440b72f58cd9ecfdae70d (patch) | |
| tree | a2e37f1eecf618efe82c5d85438a363a351456d8 /src/helpers | |
| parent | b4f123d1f2af8e7b42c730789d863aa22ea9fb56 (diff) | |
input: fix xwayland constraint calcs
some minor adjustments, fixes #3028
Diffstat (limited to 'src/helpers')
| -rw-r--r-- | src/helpers/WLClasses.hpp | 6 |
1 files changed, 4 insertions, 2 deletions
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; }; |
