From 1d23ed5811026dcfe109f1d55dc48d3270f41c58 Mon Sep 17 00:00:00 2001 From: Andrey Nekrasov Date: Tue, 30 May 2023 15:56:45 +0200 Subject: [PATCH] [MWB]Prevent spurious wakeups so screens can turn off(#26476) --- .../MouseWithoutBorders/App/Class/Common.cs | 5 ----- .../MouseWithoutBorders/App/Class/Setting.cs | 19 ------------------- 2 files changed, 24 deletions(-) diff --git a/src/modules/MouseWithoutBorders/App/Class/Common.cs b/src/modules/MouseWithoutBorders/App/Class/Common.cs index ec0fa9e039..63d73ebbcb 100644 --- a/src/modules/MouseWithoutBorders/App/Class/Common.cs +++ b/src/modules/MouseWithoutBorders/App/Class/Common.cs @@ -540,11 +540,6 @@ namespace MouseWithoutBorders else { SendHeartBeat(); - - if (Setting.Values.BlockScreenSaverEx && lastInputEventCount == Common.InputEventCount && Common.DesMachineID == Common.MachineID) - { - PokeMyself(); - } } lastInputEventCount = Common.InputEventCount; diff --git a/src/modules/MouseWithoutBorders/App/Class/Setting.cs b/src/modules/MouseWithoutBorders/App/Class/Setting.cs index ce68aeb2f3..572af502b8 100644 --- a/src/modules/MouseWithoutBorders/App/Class/Setting.cs +++ b/src/modules/MouseWithoutBorders/App/Class/Setting.cs @@ -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