summaryrefslogtreecommitdiff
path: root/src/protocols/SessionLock.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/SessionLock.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/SessionLock.hpp')
-rw-r--r--src/protocols/SessionLock.hpp18
1 files changed, 9 insertions, 9 deletions
diff --git a/src/protocols/SessionLock.hpp b/src/protocols/SessionLock.hpp
index 6b0c4e08..a0c67e88 100644
--- a/src/protocols/SessionLock.hpp
+++ b/src/protocols/SessionLock.hpp
@@ -9,16 +9,17 @@
class CMonitor;
class CSessionLock;
+class CWLSurfaceResource;
class CSessionLockSurface {
public:
- CSessionLockSurface(SP<CExtSessionLockSurfaceV1> resource_, wlr_surface* surface_, CMonitor* pMonitor_, WP<CSessionLock> owner_);
+ CSessionLockSurface(SP<CExtSessionLockSurfaceV1> resource_, SP<CWLSurfaceResource> surface_, CMonitor* pMonitor_, WP<CSessionLock> owner_);
~CSessionLockSurface();
- bool good();
- bool inert();
- CMonitor* monitor();
- wlr_surface* surface();
+ bool good();
+ bool inert();
+ CMonitor* monitor();
+ SP<CWLSurfaceResource> surface();
struct {
CSignal map;
@@ -29,7 +30,7 @@ class CSessionLockSurface {
private:
SP<CExtSessionLockSurfaceV1> resource;
WP<CSessionLock> sessionLock;
- wlr_surface* pSurface = nullptr;
+ WP<CWLSurfaceResource> pSurface;
CMonitor* pMonitor = nullptr;
bool ackdConfigure = false;
@@ -37,11 +38,10 @@ class CSessionLockSurface {
void sendConfigure();
- DYNLISTENER(surfaceCommit);
- DYNLISTENER(surfaceDestroy);
-
struct {
CHyprSignalListener monitorMode;
+ CHyprSignalListener surfaceCommit;
+ CHyprSignalListener surfaceDestroy;
} listeners;
};