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

[Rebased] [x11-backend] Retrieve DPI from Xft.dpi XResource #824

Merged
merged 4 commits into from
Apr 7, 2019

Conversation

mitchmindtree
Copy link
Contributor

@mitchmindtree mitchmindtree commented Mar 27, 2019

This is @semtexzv's fix for DPI behaviour on x11 at #606 rebased onto master. I just tested both master and this rebased branch locally and this branch still fixes my DPI problem on x11.

  • Tested on all platforms changed
  • Added an entry to CHANGELOG.md if knowledge of this change could be valuable to users
  • Updated documentation to reflect any user-facing changes, including notes of platform-specific behavior
  • Created an example program if it would help users understand this functionality

edit: cc @francesca64 I just noticed you were ready to merge this a while back, just thought I'd ping you!

@Osspial
Copy link
Contributor

Osspial commented Mar 30, 2019

Just FYI - I've talked with @francesca64 and it seems she no longer has the time to maintain the X11 backend, so I wouldn't expect to see a review from her. I'm intending to open an issue for broader discussion on maintainership for her current backends once I have a clearer picture of what her availability for work on the android/macos is, but in the meanwhile I'd be willing to merge this once someone else tests it.

Copy link
Contributor

@goddessfreya goddessfreya left a comment

Choose a reason for hiding this comment

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

It took me a while to realize that I need to call xrdb ~/.Xresources to reload my .Xresources, but after doing that I discovered that this works as intended.

I was concerned that we might have to release the memory returned by XResourceManagerString, but I found this nugget in the xlib docs (https://tronche.com/gui/x/xlib/resource-manager/XResourceManagerString.html):

The returned string is owned by Xlib and should not be freed by the client.

lgtm

Copy link
Contributor

@elinorbgr elinorbgr left a comment

Choose a reason for hiding this comment

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

This is a siple enough change imo, and which has been long-awaited. 👍

@Osspial Osspial merged commit 69585fe into rust-windowing:master Apr 7, 2019
elinorbgr pushed a commit that referenced this pull request Apr 8, 2019
* [x11-backend] Retrieve DPI from Xft.dpi XResource

* Update CHANGELOG.md

* Update window.rs

* Update CHANGELOG.md
felixrabe pushed a commit to felixrabe/winit that referenced this pull request Jun 30, 2019
…dowing#824)

* [x11-backend] Retrieve DPI from Xft.dpi XResource

* Update CHANGELOG.md

* Update window.rs

* Update CHANGELOG.md
kosyak pushed a commit to kosyak/winit that referenced this pull request Jul 10, 2019
…dowing#824)

* [x11-backend] Retrieve DPI from Xft.dpi XResource

* Update CHANGELOG.md

* Update window.rs

* Update CHANGELOG.md
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

5 participants