pointer-constraint: default to persistent lifetime instead

This commit is contained in:
Trianta 2024-06-27 20:16:13 -05:00
parent f7cc1c539d
commit 0b1396558f
2 changed files with 2 additions and 4 deletions

View File

@ -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() {

View File

@ -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<CPointerConstraintsProtocol> constraints;
};
};