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

Don't apply our weird window positioning hacks for clicks on traffic lights #17181

Merged
merged 1 commit into from
Oct 3, 2024

Conversation

kekekeks
Copy link
Member

@kekekeks kekekeks commented Oct 2, 2024

This hack fixes the minimize problem with macOS 15.0

In general we should reconsider our habit of calling BringToFront on every click since checking for hit-tested view can't be healthy.

Could also do an alternative check for the hit-test resulting somewhere in contentView hierarchy to avoid className comparisons.

…lights

This hack fixes the minimize problem with macOS 15.0
@kekekeks
Copy link
Member Author

kekekeks commented Oct 2, 2024

Not quite sure if we should still trigger that NonClientLeftButtonDown event. It seems to be used for cancelling drag and mouse-leave events too.
I'd prefer to change the logic for that event too, since right now it doesn't take into account a possibility of client area being extended to the entire window.

@avaloniaui-bot
Copy link

You can test this PR using the following package version. 11.2.999-cibuild0052357-alpha. (feed url: https://nuget-feed-all.avaloniaui.net/v3/index.json) [PRBUILDID]

@maxkatz6 maxkatz6 added the backport-candidate-11.2.x Consider this PR for backporting to 11.2 branch label Oct 3, 2024
Copy link
Member

@jmacato jmacato left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fixes issue on Sequioa Beta

@MrJul MrJul added this pull request to the merge queue Oct 3, 2024
Merged via the queue into master with commit b17153f Oct 3, 2024
12 checks passed
@MrJul MrJul deleted the fixes/hackfix-macos-minimize branch October 3, 2024 08:54
@maxkatz6 maxkatz6 added backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Oct 4, 2024
grokys pushed a commit that referenced this pull request Oct 4, 2024
…lights (#17181)

This hack fixes the minimize problem with macOS 15.0
grokys pushed a commit that referenced this pull request Oct 8, 2024
…lights (#17181)

This hack fixes the minimize problem with macOS 15.0
grokys pushed a commit that referenced this pull request Oct 8, 2024
…lights (#17181)

This hack fixes the minimize problem with macOS 15.0
@grokys grokys added backported-11.0.x backported-11.1.x and removed backport-candidate-11.0.x Consider this PR for backporting to 11.0 branch backport-candidate-11.1.x Consider this PR for backporting to 11.1 branch labels Oct 8, 2024
maxkatz6 pushed a commit that referenced this pull request Oct 27, 2024
…lights (#17181)

This hack fixes the minimize problem with macOS 15.0
@maxkatz6 maxkatz6 added backported-11.2.x and removed backport-candidate-11.2.x Consider this PR for backporting to 11.2 branch labels Oct 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants