mirror of https://github.com/hyprwm/Hyprland
pointer-constraint: default to persistent lifetime instead
This commit is contained in:
parent
f7cc1c539d
commit
0b1396558f
|
@ -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() {
|
||||
|
|
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue