mirror of
https://github.com/microsoft/PowerToys.git
synced 2026-04-04 18:26:39 +02:00
[MWB]Prevent spurious wakeups so screens can turn off(#26476)
This commit is contained in:
@@ -540,11 +540,6 @@ namespace MouseWithoutBorders
|
||||
else
|
||||
{
|
||||
SendHeartBeat();
|
||||
|
||||
if (Setting.Values.BlockScreenSaverEx && lastInputEventCount == Common.InputEventCount && Common.DesMachineID == Common.MachineID)
|
||||
{
|
||||
PokeMyself();
|
||||
}
|
||||
}
|
||||
|
||||
lastInputEventCount = Common.InputEventCount;
|
||||
|
||||
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user