-
Notifications
You must be signed in to change notification settings - Fork 567
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
X11 shell does not handle DPI scaling. #939
Comments
Note: from further experimentation, we've come up with these two functions, which works well at least on my system. Feel free to re-use if it's useful. |
It appears to me that the window gets created with the correct (scaled) size and contents are scaled correctly, yet the draw buffer is not scaled (with scale factor 2, only the top-left quarter gets drawn). Given a couple of hints I could probably make a PR. |
Probably the invalidation/presentation region is not being scaled. Look at the Note that we also have a fallback drawing method in case the present extension isn't available; that one will need to handle scaling too, and the relevant code is near the end of |
I was wrong: the behaviour mentioned happens with the GTK backend; with X11 there is no scaling. I have a fix that seems to work for GTK. |
No github, this isn't fixed yet. |
This should be done after #904 is merged.
The text was updated successfully, but these errors were encountered: