From 62f4503f07066762af9546bb4a2acdd58b72d4bf Mon Sep 17 00:00:00 2001 From: vaxerski <43317083+vaxerski@users.noreply.github.com> Date: Sat, 10 Dec 2022 14:43:46 +0000 Subject: handle constraint cursor hints better --- src/helpers/WLClasses.hpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/helpers') 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); -- cgit v1.2.3