mirror of https://github.com/hyprwm/Hyprland
pointer-constraints: keep constraint alive until actual destruction
This commit is contained in:
parent
e4d09aa3a9
commit
f7cc1c539d
|
@ -112,6 +112,7 @@ void CPointerConstraint::deactivate() {
|
||||||
|
|
||||||
active = false;
|
active = false;
|
||||||
|
|
||||||
|
/* Requires additional lifetime implementations
|
||||||
if (lifetime == ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ONESHOT) {
|
if (lifetime == ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ONESHOT) {
|
||||||
dead = true;
|
dead = true;
|
||||||
// remove from inputmgr
|
// remove from inputmgr
|
||||||
|
@ -120,6 +121,7 @@ void CPointerConstraint::deactivate() {
|
||||||
return !SHP || SHP.get() == this;
|
return !SHP || SHP.get() == this;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
*/
|
||||||
}
|
}
|
||||||
|
|
||||||
void CPointerConstraint::activate() {
|
void CPointerConstraint::activate() {
|
||||||
|
|
Loading…
Reference in New Issue