diff --git a/ScreenCast.Win/Services/KeyboardMouseInputWin.cs b/ScreenCast.Win/Services/KeyboardMouseInputWin.cs index 6fc70371..ab4b4f86 100644 --- a/ScreenCast.Win/Services/KeyboardMouseInputWin.cs +++ b/ScreenCast.Win/Services/KeyboardMouseInputWin.cs @@ -348,21 +348,11 @@ namespace Remotely.ScreenCast.Win.Services { if (!Win32Interop.SwitchToInputDesktop()) { - if (IsInputBlocked) - { - BlockInput(false); - } - Task.Run(() => { Win32Interop.SwitchToInputDesktop(); inputAction(); }).Wait(); - - if (IsInputBlocked) - { - BlockInput(true); - } } else {