protocols: add hyprland_lock_notify_v1 implementation (#9092)
This commit is contained in:
parent
8dd2cd41fb
commit
407453166c
8 changed files with 154 additions and 7 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue