input: fix xwayland constraint calcs
some minor adjustments, fixes #3028
This commit is contained in:
parent
b4f123d1f2
commit
c98a00678c
3 changed files with 10 additions and 6 deletions
|
|
@ -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;
|
||||
};
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue