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