[MWB]Prevent spurious wakeups so screens can turn off(#26476)

This commit is contained in:
Andrey Nekrasov
2023-05-30 15:56:45 +02:00
committed by GitHub
parent b72af5e247
commit 1d23ed5811
2 changed files with 0 additions and 24 deletions

View File

@@ -540,11 +540,6 @@ namespace MouseWithoutBorders
else
{
SendHeartBeat();
if (Setting.Values.BlockScreenSaverEx && lastInputEventCount == Common.InputEventCount && Common.DesMachineID == Common.MachineID)
{
PokeMyself();
}
}
lastInputEventCount = Common.InputEventCount;

View File

@@ -501,25 +501,6 @@ namespace MouseWithoutBorders.Class
}
}
internal bool BlockScreenSaverEx
{
get
{
lock (_loadingSettingsLock)
{
return _properties.BlockScreenSaverOnOtherMachines;
}
}
set
{
lock (_loadingSettingsLock)
{
_properties.BlockScreenSaverOnOtherMachines = value;
}
}
}
internal bool MoveMouseRelatively
{
get