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;
|
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
|
||||||
|
@ -121,7 +120,6 @@ void CPointerConstraint::deactivate() {
|
||||||
return !SHP || SHP.get() == this;
|
return !SHP || SHP.get() == this;
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
*/
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void CPointerConstraint::activate() {
|
void CPointerConstraint::activate() {
|
||||||
|
|
|
@ -46,7 +46,7 @@ class CPointerConstraint {
|
||||||
bool active = false;
|
bool active = false;
|
||||||
bool locked = false;
|
bool locked = false;
|
||||||
bool dead = false;
|
bool dead = false;
|
||||||
zwpPointerConstraintsV1Lifetime lifetime = ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_ONESHOT;
|
zwpPointerConstraintsV1Lifetime lifetime = ZWP_POINTER_CONSTRAINTS_V1_LIFETIME_PERSISTENT;
|
||||||
|
|
||||||
void sharedConstructions();
|
void sharedConstructions();
|
||||||
void onSetRegion(wl_resource* region);
|
void onSetRegion(wl_resource* region);
|
||||||
|
@ -78,4 +78,4 @@ class CPointerConstraintsProtocol : public IWaylandProtocol {
|
||||||
|
|
||||||
namespace PROTO {
|
namespace PROTO {
|
||||||
inline UP<CPointerConstraintsProtocol> constraints;
|
inline UP<CPointerConstraintsProtocol> constraints;
|
||||||
};
|
};
|
||||||
|
|
Loading…
Reference in New Issue