protocols: add hyprland_lock_notify_v1 implementation (#9092)

This commit is contained in:
Maximilian Seidler 2025-01-19 18:21:36 +00:00 committed by GitHub
parent 8dd2cd41fb
commit 407453166c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
8 changed files with 154 additions and 7 deletions

View file

@ -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() {