X11: Properly update window size constraints on DPI change (#1356)
* In `WindowBuilderExtUnix` methods, use `Size` instead of `LogicalSize`
This commit is contained in:
parent
3aa3880e69
commit
ec1ae68cfc
4 changed files with 37 additions and 22 deletions
|
|
@ -420,6 +420,7 @@ impl<T: 'static> EventProcessor<T> {
|
|||
new_scale_factor,
|
||||
width,
|
||||
height,
|
||||
&shared_state_lock,
|
||||
);
|
||||
|
||||
let old_inner_size = PhysicalSize::new(width, height);
|
||||
|
|
@ -1134,6 +1135,7 @@ impl<T: 'static> EventProcessor<T> {
|
|||
new_monitor.scale_factor,
|
||||
width,
|
||||
height,
|
||||
&*window.shared_state.lock(),
|
||||
);
|
||||
|
||||
let window_id = crate::window::WindowId(
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue