x11: compute resize logical size with new dpi (#668)

* x11: compute resize logical size with new dpi

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).

* Doc tweaks
This commit is contained in:
Victor Berger
2018-10-19 22:32:57 +02:00
committed by Francesca Plebani
parent f486845f7f
commit c744b016ce
3 changed files with 54 additions and 39 deletions

View File

@@ -14,8 +14,10 @@
- On Windows, `Window::set_cursor` now applies immediately instead of requiring specific events to occur first.
- On Windows, fix `Window::set_maximized`.
- On Windows 10, fix transparency (#260).
- on macOS, fix modifiers during key repeat.
- On macOS, fix modifiers during key repeat.
- Implemented the `Debug` trait for `Window`, `EventsLoop`, `EventsLoopProxy` and `WindowBuilder`.
- On X11, now a `Resized` event will always be generated after a DPI change to ensure the window's logical size is consistent with the new DPI.
- Added further clarifications to the DPI docs.
# Version 0.17.2 (2018-08-19)