From 200d32db8076a49c8f0eee2df6670b1737b9df66 Mon Sep 17 00:00:00 2001 From: Nick Bolton Date: Wed, 19 Feb 2025 13:24:38 +0000 Subject: [PATCH] chore: Improve log message for leave screen warning on Windows --- src/lib/platform/MSWindowsScreen.cpp | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/lib/platform/MSWindowsScreen.cpp b/src/lib/platform/MSWindowsScreen.cpp index 0773589e6..24aa41dcb 100644 --- a/src/lib/platform/MSWindowsScreen.cpp +++ b/src/lib/platform/MSWindowsScreen.cpp @@ -308,10 +308,9 @@ bool MSWindowsScreen::canLeave() { POINT pos; if (!getThisCursorPos(&pos)) { - LOG((CLOG_DEBUG "unable to leave screen as windows security has disabled " - "critical functions")); - // unable to get position this means deskflow will break if the cursor - // leaves the screen + // prevent screen leave when cursor position is not available; if unable to get cursor position, + // screen will become inaccessible if the cursor leaves the screen. + LOG_DEBUG("unable to leave screen, cursor position not available"); return false; }