microsoft / WindowsAppSDK

The Windows App SDK empowers all Windows desktop apps with modern Windows UI, APIs, and platform features, including back-compat support, shipped via NuGet.
https://docs.microsoft.com/windows/apps/windows-app-sdk/
MIT License
3.82k stars 320 forks source link

Using User32.TrackPopupMenu() makes main window unclickable more often than not. #1272

Open josetr opened 3 years ago

josetr commented 3 years ago

Describe the bug

Using User32.TrackPopupMenu() makes main window unclickable more often than not. Moving the window to my secondary monitor or making it very small makes it fail nearly every time.

Repo: https://github.com/josetr/WinUI-TrackPopupMenu-Issue

Expected behavior The popup menu should be closed once you click the main window.

Version Info

NuGet package version: Microsoft.ProjectReunion 0.8.1 Microsoft.ProjectReunion.Foundation 0.8.1 Microsoft.ProjectReunion.WinUI 0.8.1

Windows app type: UWP Win32
Yes
Windows version Saw the problem?
Insider Build (xxxxx)
May 2021 Update (19043) Yes
October 2020 Update (19042)
May 2020 Update (19041)
November 2019 Update (18363)
May 2019 Update (18362)
October 2018 Update (17763)
April 2018 Update (17134)
Fall Creators Update (16299)
Creators Update (15063)
Device form factor Saw the problem?
Desktop Yes
Xbox
Surface Hub
IoT
StephenLPeters commented 3 years ago

Transfering to WindowsAppSDK as this isn't a xaml API