summaryrefslogtreecommitdiff
path: root/src/helpers
diff options
context:
space:
mode:
authorvaxerski <43317083+vaxerski@users.noreply.github.com>2022-12-10 14:43:46 +0000
committervaxerski <43317083+vaxerski@users.noreply.github.com>2022-12-10 14:43:46 +0000
commit62f4503f07066762af9546bb4a2acdd58b72d4bf (patch)
tree3396c1fbab98f3d6fa231b0733796c5469f01c59 /src/helpers
parentbf78dcecf092fc10df75ce869306ddabf8ecd640 (diff)
handle constraint cursor hints better
Diffstat (limited to 'src/helpers')
-rw-r--r--src/helpers/WLClasses.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/src/helpers/WLClasses.hpp b/src/helpers/WLClasses.hpp
index 66581077..1461e481 100644
--- a/src/helpers/WLClasses.hpp
+++ b/src/helpers/WLClasses.hpp
@@ -146,6 +146,9 @@ struct SConstraint {
SMouse* pMouse = nullptr;
wlr_pointer_constraint_v1* constraint = nullptr;
+ bool hintSet = false;
+ Vector2D positionHint; // the position hint, but will be set to the current cursor pos if not set.
+
DYNLISTENER(setConstraintRegion);
DYNLISTENER(destroyConstraint);