chore: Improve log message for leave screen warning on Windows
This commit is contained in:
parent
2322f312a9
commit
200d32db80
1 changed files with 3 additions and 4 deletions
|
|
@ -308,10 +308,9 @@ bool MSWindowsScreen::canLeave()
|
||||||
{
|
{
|
||||||
POINT pos;
|
POINT pos;
|
||||||
if (!getThisCursorPos(&pos)) {
|
if (!getThisCursorPos(&pos)) {
|
||||||
LOG((CLOG_DEBUG "unable to leave screen as windows security has disabled "
|
// prevent screen leave when cursor position is not available; if unable to get cursor position,
|
||||||
"critical functions"));
|
// screen will become inaccessible if the cursor leaves the screen.
|
||||||
// unable to get position this means deskflow will break if the cursor
|
LOG_DEBUG("unable to leave screen, cursor position not available");
|
||||||
// leaves the screen
|
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue