Browse Source

Merge branch 'master' into fixes/flaky-menu-integration-tests

pull/8612/head
Max Katz 4 years ago
committed by GitHub
parent
commit
95aa976ba9
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 16
      src/Windows/Avalonia.Win32/WinRT/Composition/WinUICompositorConnection.cs

16
src/Windows/Avalonia.Win32/WinRT/Composition/WinUICompositorConnection.cs

@ -120,16 +120,14 @@ namespace Avalonia.Win32.WinRT.Composition
private void RunLoop()
{
using (var act = _compositor5.RequestCommitAsync())
act.SetCompleted(new RunLoopHandler(this));
while (true)
{
var st = Stopwatch.StartNew();
using (var act = _compositor5.RequestCommitAsync())
act.SetCompleted(new RunLoopHandler(this));
while (true)
{
UnmanagedMethods.GetMessage(out var msg, IntPtr.Zero, 0, 0);
lock (_pumpLock)
UnmanagedMethods.DispatchMessage(ref msg);
}
UnmanagedMethods.GetMessage(out var msg, IntPtr.Zero, 0, 0);
lock (_pumpLock)
UnmanagedMethods.DispatchMessage(ref msg);
}
}

Loading…
Cancel
Save