summaryrefslogtreecommitdiff
path: root/src/protocols/PointerConstraints.cpp
diff options
context:
space:
mode:
authorVaxry <vaxry@vaxry.net>2024-06-29 00:18:18 +0200
committerVaxry <vaxry@vaxry.net>2024-06-29 00:18:24 +0200
commitd16c6aa1db52a0ee60ca1f53a9aa9ed1a2537ff2 (patch)
treeb54bf92d42255b8847b8ebb5c36f7f0d4fda2083 /src/protocols/PointerConstraints.cpp
parentac11771348146087eb577d20162ec10a81358a7e (diff)
pointer-constraint: set lifetime correctly
ref #6679
Diffstat (limited to 'src/protocols/PointerConstraints.cpp')
-rw-r--r--src/protocols/PointerConstraints.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/protocols/PointerConstraints.cpp b/src/protocols/PointerConstraints.cpp
index a17fa6cd..fd15242d 100644
--- a/src/protocols/PointerConstraints.cpp
+++ b/src/protocols/PointerConstraints.cpp
@@ -7,8 +7,8 @@
#define LOGM PROTO::constraints->protoLog
-CPointerConstraint::CPointerConstraint(SP<CZwpLockedPointerV1> resource_, SP<CWLSurfaceResource> surf, wl_resource* region_, zwpPointerConstraintsV1Lifetime lifetime) :
- resourceL(resource_), locked(true) {
+CPointerConstraint::CPointerConstraint(SP<CZwpLockedPointerV1> resource_, SP<CWLSurfaceResource> surf, wl_resource* region_, zwpPointerConstraintsV1Lifetime lifetime_) :
+ resourceL(resource_), locked(true), lifetime(lifetime_) {
if (!resource_->resource())
return;
@@ -46,8 +46,8 @@ CPointerConstraint::CPointerConstraint(SP<CZwpLockedPointerV1> resource_, SP<CWL
sharedConstructions();
}
-CPointerConstraint::CPointerConstraint(SP<CZwpConfinedPointerV1> resource_, SP<CWLSurfaceResource> surf, wl_resource* region_, zwpPointerConstraintsV1Lifetime lifetime) :
- resourceC(resource_), locked(false) {
+CPointerConstraint::CPointerConstraint(SP<CZwpConfinedPointerV1> resource_, SP<CWLSurfaceResource> surf, wl_resource* region_, zwpPointerConstraintsV1Lifetime lifetime_) :
+ resourceC(resource_), locked(false), lifetime(lifetime_) {
if (!resource_->resource())
return;