handle constraint cursor hints better

This commit is contained in:
vaxerski
2022-12-10 14:43:46 +00:00
parent bf78dcecf0
commit 62f4503f07
4 changed files with 41 additions and 9 deletions

View File

@@ -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);