Skip to content

fix(controls): Fix flickering issue when hovering over the top-right close button#1653

Open
Koichi-Kobayashi wants to merge 1 commit intolepoco:mainfrom
Koichi-Kobayashi:Close-button-flickers
Open

fix(controls): Fix flickering issue when hovering over the top-right close button#1653
Koichi-Kobayashi wants to merge 1 commit intolepoco:mainfrom
Koichi-Kobayashi:Close-button-flickers

Conversation

@Koichi-Kobayashi
Copy link
Contributor

Pull request type

  • Update
  • Bugfix
  • Feature
  • Code style update (formatting, renaming)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • Documentation content changes

What is the current behavior?

This pull request revisits and consolidates the changes from previous pull requests (#1647 and #1604).

It fixes an issue where the close button in the upper-right corner could flicker and become unresponsive when the mouse cursor was nearby, and restores the ability to resize the window from that corner.

Issue Number: #1647

What is the new behavior?

  • Improved non-client-side hit testing for title bar buttons, reducing flickering during hover at pixel/DPI boundaries.
  • Adjusted hit testing logic for TitleBar to prevent treating window button areas as resize/drag regions.
  • Resolved merge conflict in src/Wpf.Ui/Controls/TitleBar/TitleBar.cs. ( my pull request fix(controls): Enable window resizing from title bar corners #1604 )

Other information

N/A

@github-actions github-actions bot added controls Changes to the appearance or logic of custom controls. PR Pull request dotnet release titlebar Titlebar updates labels Jan 22, 2026
@Koichi-Kobayashi Koichi-Kobayashi changed the title Fix flickering issue when hovering over the top-right close button fix(controls): Fix flickering issue when hovering over the top-right close button Jan 22, 2026
@github-actions github-actions bot added the ⭐ top pull request Top pull request. label Jan 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

controls Changes to the appearance or logic of custom controls. dotnet PR Pull request release ⭐ top pull request Top pull request. titlebar Titlebar updates

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant