From 35573b2bf8b5b79cbd631d337de5aae5dd9ce3a3 Mon Sep 17 00:00:00 2001 From: Nicola Carminati Date: Tue, 30 Apr 2019 09:24:05 +0200 Subject: [PATCH] Fix INP in OSAI --- Client/View/NcWindow.cs | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/Client/View/NcWindow.cs b/Client/View/NcWindow.cs index 818c0f3c..d29765f9 100644 --- a/Client/View/NcWindow.cs +++ b/Client/View/NcWindow.cs @@ -1009,6 +1009,13 @@ namespace Active_Client.View //Read the actual ID of the Process GetWindowThreadProcessId(hwnd, out ActualPID); + //Delete the TOPMOST Style of the Window + if (NcProcessPID != 0 && ActualPID == NcProcessPID) + { + if (state == NcState.SHOW) + SetWindowPos(hwnd, HWND_NOTOPMOST, 0, 0, 0, 0, SWP_NOSIZE | SWP_NOMOVE | SWP_NOACTIVATE); + } + //If the PID is the STEP-HMI Process if (ActualPID == MainProcessPID) {