-
-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
Fix popups position on X11 #14551
Fix popups position on X11 #14551
Conversation
Signed-off-by: Mary Guillemard <mary@mary.zone>
…X11Window.Position 567561e caused the origin of window to not be (0, 0) for popups on X. As a result, all popups were wrongly positioned. This change Position to translate from root window coordinates (the display space) to parent window coordinates. Signed-off-by: Mary Guillemard <mary@mary.zone>
You can test this PR using the following package version. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
No worries.
We are going to release 11.0.9 soon, as there is another critical due to incorrectly backported PR.
* Ensure to use the appropriate parent when talking with X11 in X11Window Signed-off-by: Mary Guillemard <mary@mary.zone> * Translate root window coordinates to window coordinates when setting X11Window.Position 567561e caused the origin of window to not be (0, 0) for popups on X. As a result, all popups were wrongly positioned. This change Position to translate from root window coordinates (the display space) to parent window coordinates. Signed-off-by: Mary Guillemard <mary@mary.zone> --------- Signed-off-by: Mary Guillemard <mary@mary.zone>
Setting popup window parent makes it to be constrained to the window. Which is not desired behavior. So both PRs will be reverted as regressions. |
This reverts commit dfc0819. X popup position broke entirely (my fault oops), waiting for next release with a fix (see AvaloniaUI/Avalonia#14551)
567561e caused the origin of window to not be (0, 0) for popups on X.
As a result, all popups were wrongly positioned.
This change Position to translate from root window coordinates (the display space) to parent window coordinates.
I also changed every X calls to depends on the correct parent in X11Window.
This is a major regression in Avalonia 11.0.8, sorry about that. 😅
This time tested under KDE Plasma 5 and gamescope.