mirror of
https://github.com/gnif/LookingGlass.git
synced 2026-07-24 00:02:03 +00:00
[idd] ensure the only active monitor is the IDD
This commit is contained in:
@@ -124,6 +124,10 @@ int WINAPI WinMain(_In_ HINSTANCE hInstance, _In_opt_ HINSTANCE hPrevInstance, _
|
||||
g_pipe.ReloadSettings();
|
||||
});
|
||||
|
||||
window.onDisplayChange([]() {
|
||||
return g_pipe.EnsureOnlyDisplay();
|
||||
});
|
||||
|
||||
HANDLE hWait;
|
||||
if (!RegisterWaitForSingleObject(&hWait, hParent.Get(), DestroyNotifyWindow, &window, INFINITE, WT_EXECUTEONLYONCE))
|
||||
DEBUG_ERROR_HR(GetLastError(), "Failed to RegisterWaitForSingleObject");
|
||||
@@ -445,4 +449,4 @@ static void Launch()
|
||||
|
||||
l_process.Attach(pi.hProcess);
|
||||
CloseHandle(pi.hThread);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user