input: pass touch events to lock screens (#9129)

* refactor: use weak pointers for session lock surfaces

* input: pass touch events to lock screens
This commit is contained in:
Junxuan Liao
2025-01-25 12:44:13 -06:00
committed by GitHub
parent bce58d9d65
commit 9199a9746d
6 changed files with 47 additions and 25 deletions

View File

@@ -49,20 +49,20 @@ class CSessionLockManager {
CSessionLockManager();
~CSessionLockManager() = default;
SSessionLockSurface* getSessionLockSurfaceForMonitor(uint64_t);
WP<SSessionLockSurface> getSessionLockSurfaceForMonitor(uint64_t);
float getRedScreenAlphaForMonitor(uint64_t);
float getRedScreenAlphaForMonitor(uint64_t);
bool isSessionLocked();
bool isSessionLockPresent();
bool isSurfaceSessionLock(SP<CWLSurfaceResource>);
bool anySessionLockSurfacesPresent();
bool isSessionLocked();
bool isSessionLockPresent();
bool isSurfaceSessionLock(SP<CWLSurfaceResource>);
bool anySessionLockSurfacesPresent();
void removeSessionLockSurface(SSessionLockSurface*);
void removeSessionLockSurface(SSessionLockSurface*);
void onLockscreenRenderedOnMonitor(uint64_t id);
void onLockscreenRenderedOnMonitor(uint64_t id);
bool shallConsiderLockMissing();
bool shallConsiderLockMissing();
private:
UP<SSessionLock> m_pSessionLock;