diff --git a/src/protocols/PointerConstraints.cpp b/src/protocols/PointerConstraints.cpp index 58525adc..a17fa6cd 100644 --- a/src/protocols/PointerConstraints.cpp +++ b/src/protocols/PointerConstraints.cpp @@ -112,7 +112,6 @@ void CPointerConstraint::deactivate() { active = false; - /* Requires additional lifetime implementations if (lifetime == ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ONESHOT) { dead = true; // remove from inputmgr @@ -121,7 +120,6 @@ void CPointerConstraint::deactivate() { return !SHP || SHP.get() == this; }); } - */ } void CPointerConstraint::activate() { diff --git a/src/protocols/PointerConstraints.hpp b/src/protocols/PointerConstraints.hpp index faf28b32..b9ee2a64 100644 --- a/src/protocols/PointerConstraints.hpp +++ b/src/protocols/PointerConstraints.hpp @@ -46,7 +46,7 @@ class CPointerConstraint { bool active = false; bool locked = false; bool dead = false; - zwpPointerConstraintsV1Lifetime lifetime = ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ONESHOT; + zwpPointerConstraintsV1Lifetime lifetime = ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_PERSISTENT; void sharedConstructions(); void onSetRegion(wl_resource* region); @@ -78,4 +78,4 @@ class CPointerConstraintsProtocol : public IWaylandProtocol { namespace PROTO { inline UP constraints; -}; \ No newline at end of file +};