From f5cf76801758bb74410eb06940c72f9684322c68 Mon Sep 17 00:00:00 2001 From: Serge <5920850+seerge@users.noreply.github.com> Date: Fri, 12 May 2023 14:06:15 +0200 Subject: [PATCH] Display workaround --- app/NativeMethods.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/app/NativeMethods.cs b/app/NativeMethods.cs index a2264a9a..11f08dc4 100644 --- a/app/NativeMethods.cs +++ b/app/NativeMethods.cs @@ -647,6 +647,8 @@ public class NativeMethods //Logger.WriteLine(screen.DeviceName); count++; } + + if (displayNum > 0 && count == 0) laptopScreen = defaultDevice; } catch (Exception ex) {