Remove unblock/block.

This commit is contained in:
Jared Goodwin 2020-04-10 16:19:31 -07:00
parent 93f16ada8b
commit 61227959ea

View File

@ -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
{