Add foreground stealing to GLWindow

This commit is contained in:
Yoshi Askharoun
2026-07-26 11:15:43 -05:00
parent fe8a0b9760
commit cd729851b3
2 changed files with 12 additions and 3 deletions
+9
View File
@@ -246,6 +246,15 @@ namespace Microsoft.Iris.Session
DeferredCall.Post(DispatchPriority.RenderSync, _syncWindowHandler);
}
public void ForceSetForegroundWindow(IntPtr hwnd)
{
#if WINDOWS
// TODO: See logs/Microsoft.Zune/Util/Windowing.md, requires Win32 calls
#else
_engine.Window.TakeForeground(true);
#endif
}
private void SyncWindowHandler()
{
_syncWindowPending = false;