Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

ExtendsContentIntoTitleBar = true causes incorrect cursor events in child windows (WinAppSdk 1.6+) #10357

Open
ramjke opened this issue Feb 15, 2025 · 0 comments
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners

Comments

@ramjke
Copy link

ramjke commented Feb 15, 2025

Describe the bug

This bug drives me mad. It started with WinAppSDK 1.6.

When ExtendsContentIntoTitleBar = true; is set in the main window, and main window is minimized, child windows start incorrectly processing cursor events.

The bug is likely tied to how WinUI 3 manages input events when ExtendsContentIntoTitleBar is enabled. Which leads to a wide variety of bugs, such as controls flickering on hover.

Reproducible on: Windows App SDK 1.6.x
Not reproducible on: Windows App SDK 1.5.x

Steps to reproduce the bug

  1. Enable ExtendsContentIntoTitleBar = true in the Main Window to use a modern title bar.
  2. Create a Second Window.
  3. Minimize the Main Window.
  4. Hover over any controls in the Second Window.
  5. Observe flickering and incorrect pointer events.

Repo to reproduce: https://github.com/ramjke/SecondWindowFlickeringTest

Expected behavior

PointerEntered should trigger only once when the cursor enters a control.

Screenshots

video.mp4

NuGet package version

WinUI 3 - Windows App SDK 1.6.5: 1.6.250205002

Windows version

Windows 11 (23H2): Build 22631

Additional context

No response

@ramjke ramjke added the bug Something isn't working label Feb 15, 2025
@microsoft-github-policy-service microsoft-github-policy-service bot added the needs-triage Issue needs to be triaged by the area owners label Feb 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working needs-triage Issue needs to be triaged by the area owners
Projects
None yet
Development

No branches or pull requests

1 participant