fix(comment): correct hide-cursor handler explanation for WGC/SCK/Linux

This commit is contained in:
webadderall
2026-03-16 22:18:21 +11:00
parent c4cb8f74ad
commit 4290e45841
+5 -3
View File
@@ -2748,9 +2748,11 @@ export function registerIpcHandlers(
// The IPC promise resolves only after the cursor hide attempt completes.
// ---------------------------------------------------------------------------
ipcMain.handle('hide-cursor', () => {
// No-op: macOS uses native ScreenCaptureKit (cursor excluded at capture
// level), and Win/Linux use Electron desktopCapturer where cursor hiding
// is not reliably supported.
// No-op: macOS excludes the cursor at the ScreenCaptureKit capture level.
// Windows excludes the cursor via IsCursorCaptureEnabled(false) in wgc_session.cpp.
// Linux uses Electron desktopCapturer which does not support cursor hiding;
// if WGC is unavailable on Windows the call also falls back to browser capture
// where cursor hiding is unsupported — those users may see the real cursor.
return { success: true }
})