6#include "phosphorwayland_export.h"
18inline constexpr const char*
Surface =
"_ps_session_lock_surface";
40class PHOSPHORWAYLAND_EXPORT LockSurface :
public QObject
43 Q_DISABLE_COPY_MOVE(LockSurface)
55 [[nodiscard]] QScreen*
screen()
const;
64 static LockSurface*
get(QWindow* window);
67 static LockSurface*
find(QWindow* window);
78 explicit LockSurface(QWindow* window);
79 void setConfigured(
bool configured);
81 QPointer<QWindow> m_window;
82 QPointer<QScreen> m_screen;
83 bool m_configured =
false;
Marks a QWindow as an ext_session_lock_surface_v1 for one output.
Definition LockSurface.h:41
friend class SessionLockWindow
Definition LockSurface.h:77
static LockSurface * get(QWindow *window)
Get or create the LockSurface for window.
void setScreen(QScreen *screen)
The output this lock surface covers.
static bool isSupported()
True iff the compositor advertises ext_session_lock_manager_v1.
static LockSurface * find(QWindow *window)
The existing LockSurface for window, or nullptr.
bool isConfigured() const
True once the compositor has sized the surface and the window has taken that size.
Property keys used by LockSurface ↔ QPA plugin communication.
Definition LockSurface.h:16
constexpr const char * IsSessionLock
Definition LockSurface.h:17
constexpr const char * Surface
Definition LockSurface.h:18
Definition BackgroundEffect.h:15