summaryrefslogtreecommitdiff
path: root/src/protocols/PointerConstraints.hpp
diff options
context:
space:
mode:
authorVaxry <43317083+vaxerski@users.noreply.github.com>2024-06-08 10:07:59 +0200
committerGitHub <noreply@github.com>2024-06-08 10:07:59 +0200
commit6967a31450441fc5605c05db6f65505dace4b263 (patch)
tree255a3cff7f3e2eb8a50c952eab9b270a7937561d /src/protocols/PointerConstraints.hpp
parentc31d9ef4172452f6f219f91d9b87a24d91f0cf3a (diff)
wayland/core: move to new impl (#6268)
* wayland/core/dmabuf: move to new impl it's the final countdown
Diffstat (limited to 'src/protocols/PointerConstraints.hpp')
-rw-r--r--src/protocols/PointerConstraints.hpp23
1 files changed, 12 insertions, 11 deletions
diff --git a/src/protocols/PointerConstraints.hpp b/src/protocols/PointerConstraints.hpp
index 93e57c46..06bebb02 100644
--- a/src/protocols/PointerConstraints.hpp
+++ b/src/protocols/PointerConstraints.hpp
@@ -12,31 +12,32 @@
#include "../helpers/signal/Listener.hpp"
class CWLSurface;
+class CWLSurfaceResource;
class CPointerConstraint {
public:
- CPointerConstraint(SP<CZwpLockedPointerV1> resource_, wlr_surface* surf, wl_resource* region, zwpPointerConstraintsV1Lifetime lifetime);
- CPointerConstraint(SP<CZwpConfinedPointerV1> resource_, wlr_surface* surf, wl_resource* region, zwpPointerConstraintsV1Lifetime lifetime);
+ CPointerConstraint(SP<CZwpLockedPointerV1> resource_, SP<CWLSurfaceResource> surf, wl_resource* region, zwpPointerConstraintsV1Lifetime lifetime);
+ CPointerConstraint(SP<CZwpConfinedPointerV1> resource_, SP<CWLSurfaceResource> surf, wl_resource* region, zwpPointerConstraintsV1Lifetime lifetime);
~CPointerConstraint();
- bool good();
+ bool good();
- void deactivate();
- void activate();
- bool isActive();
+ void deactivate();
+ void activate();
+ bool isActive();
- CWLSurface* owner();
+ SP<CWLSurface> owner();
- CRegion logicConstraintRegion();
- bool isLocked();
- Vector2D logicPositionHint();
+ CRegion logicConstraintRegion();
+ bool isLocked();
+ Vector2D logicPositionHint();
private:
SP<CZwpLockedPointerV1> resourceL;
SP<CZwpConfinedPointerV1> resourceC;
wl_client* pClient = nullptr;
- CWLSurface* pHLSurface = nullptr;
+ WP<CWLSurface> pHLSurface;
CRegion region;
bool hintSet = false;