diff options
| author | Maximilian Seidler <78690852+PaideiaDilemma@users.noreply.github.com> | 2025-01-19 18:21:36 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-01-19 18:21:36 +0000 |
| commit | 407453166ce2a52433c7b0b4ee92a41e47ef8f6d (patch) | |
| tree | 441ec15b12061dd89ebf3bffb53b28daf514f547 /src/protocols/SessionLock.cpp | |
| parent | 8dd2cd41fb4c5a5eb6886cc190419b36084cabfa (diff) | |
protocols: add hyprland_lock_notify_v1 implementation (#9092)
Diffstat (limited to 'src/protocols/SessionLock.cpp')
| -rw-r--r-- | src/protocols/SessionLock.cpp | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/protocols/SessionLock.cpp b/src/protocols/SessionLock.cpp index db65ee5f..8e215ffa 100644 --- a/src/protocols/SessionLock.cpp +++ b/src/protocols/SessionLock.cpp @@ -2,6 +2,7 @@ #include "../Compositor.hpp" #include "../managers/SeatManager.hpp" #include "FractionalScale.hpp" +#include "LockNotify.hpp" #include "core/Compositor.hpp" #include "core/Output.hpp" #include "../helpers/Monitor.hpp" @@ -115,6 +116,8 @@ CSessionLock::CSessionLock(SP<CExtSessionLockV1> resource_) : resource(resource_ PROTO::sessionLock->locked = false; + PROTO::lockNotify->onUnlocked(); + events.unlockAndDestroy.emit(); inert = true; @@ -128,6 +131,7 @@ CSessionLock::~CSessionLock() { void CSessionLock::sendLocked() { resource->sendLocked(); + PROTO::lockNotify->onLocked(); } bool CSessionLock::good() { |
