Issue resize due to scale change on Wayland
This is a regression from 8f6de4ef.
Links: https://github.com/alacritty/alacritty/issues/7559
This commit is contained in:
parent
8b0ffb7e7d
commit
8b3de7cedf
2 changed files with 4 additions and 1 deletions
|
|
@ -11,6 +11,7 @@ Unreleased` header.
|
||||||
|
|
||||||
# Unreleased
|
# Unreleased
|
||||||
|
|
||||||
|
- On Wayland, fix resize not issued when scale changes
|
||||||
- On X11 and Wayland, fix arrow up on keypad reported as `ArrowLeft`.
|
- On X11 and Wayland, fix arrow up on keypad reported as `ArrowLeft`.
|
||||||
- On Windows, macOS, X11, Wayland and Web, implement setting images as cursors. See the `custom_cursors.rs` example.
|
- On Windows, macOS, X11, Wayland and Web, implement setting images as cursors. See the `custom_cursors.rs` example.
|
||||||
- **Breaking:** Remove `Window::set_cursor_icon`
|
- **Breaking:** Remove `Window::set_cursor_icon`
|
||||||
|
|
|
||||||
|
|
@ -401,7 +401,9 @@ impl<T: 'static> EventLoop<T> {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if compositor_update.resized {
|
// NOTE: Rescale changed the physical size which winit operates in, thus we should
|
||||||
|
// resize.
|
||||||
|
if compositor_update.resized || compositor_update.scale_changed {
|
||||||
let physical_size = self.with_state(|state| {
|
let physical_size = self.with_state(|state| {
|
||||||
let windows = state.windows.get_mut();
|
let windows = state.windows.get_mut();
|
||||||
let window = windows.get(&window_id).unwrap().lock().unwrap();
|
let window = windows.get(&window_id).unwrap().lock().unwrap();
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue