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