From 61227959eaea627bc6e8a09d8dacd52a560f4c93 Mon Sep 17 00:00:00 2001 From: Jared Goodwin Date: Fri, 10 Apr 2020 16:19:31 -0700 Subject: [PATCH] Remove unblock/block. --- ScreenCast.Win/Services/KeyboardMouseInputWin.cs | 10 ---------- 1 file changed, 10 deletions(-) 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 {