Repository navigation
x11: compute resize logical size with new dpi - #668
Merged
Merged
Conversation
Contributor
|
I've linked Alacritty's glutin update PR against this change and was able to successfully use it on both Sway and i3 without any issues. |
Contributor
Author
|
Alright, I've also clarified a little the DPI docs to clarify how to interpret the interaction between the |
Whenever a dpi change occurs, trigger a Resized event as well with the new logical size. Given X11 primarily deals in physical pixels, a change in DPI also changes the logical size (as the physical size remains fixed).
Contributor
Author
|
r? @mitchmindtree or @francesca64 ? |
Member
|
Sorry this took me so long to get to! The code looks good, and I tested it without any problems. Are the documentation edits I made alright with you? |
Contributor
Author
|
Yes, this seems good to me, thanks!
Le 19 octobre 2018 06:22:07 GMT+02:00, Francesca Plebani <notifications@github.com> a écrit :
…Sorry this took me so long to get to! The code looks good, and I tested
it without any problems. Are the documentation edits I made alright
with you?
--
You are receiving this because you authored the thread.
Reply to this email directly or view it on GitHub:
#668 (comment)
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
This change does 2 things to the x11 backend:
Resizedevent with the new, correct logical sizeThis should hopefully fix #663, but I don't really have the environment to test it right now.
cc @chrisduerr
CHANGELOG.mdif knowledge of this change could be valuable to users