protocols: do not capture cursor in toplevel without pointer focus (#9042)

This commit is contained in:
outfoxxed
2025-01-12 09:09:02 -08:00
committed by GitHub
parent a3a7499317
commit 4f0f512cab
2 changed files with 24 additions and 4 deletions

View File

@@ -51,9 +51,9 @@ class CToplevelExportFrame {
SP<CHyprlandToplevelExportFrameV1> resource;
PHLWINDOW pWindow;
bool overlayCursor = false;
bool ignoreDamage = false;
bool lockedSWCursors = false;
bool cursorOverlayRequested = false;
bool ignoreDamage = false;
bool lockedSWCursors = false;
WP<IHLBuffer> buffer;
bool bufferDMA = false;
@@ -66,6 +66,7 @@ class CToplevelExportFrame {
bool copyDmabuf(timespec* now);
bool copyShm(timespec* now);
void share();
bool shouldOverlayCursor() const;
friend class CToplevelExportProtocol;
};