Skip to content

Commit cf0a533

Browse files
committed
Issue resize due to scale change on Wayland
This is a regression from 8f6de4e. Links: alacritty/alacritty#7559
1 parent 017ff26 commit cf0a533

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

CHANGELOG.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ Unreleased` header.
1111

1212
# Unreleased
1313

14+
- On Wayland, fix resize not issued when scale changes
1415
- On X11 and Wayland, fix arrow up on keypad reported as `ArrowLeft`.
1516

1617
# 0.29.8

src/platform_impl/linux/wayland/event_loop/mod.rs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,9 @@ impl<T: 'static> EventLoop<T> {
401401
}
402402
}
403403

404-
if compositor_update.resized {
404+
// NOTE: Rescale changed the physical size which winit operates in, thus we should
405+
// resize.
406+
if compositor_update.resized || compositor_update.scale_changed {
405407
let physical_size = self.with_state(|state| {
406408
let windows = state.windows.get_mut();
407409
let window = windows.get(&window_id).unwrap().lock().unwrap();

0 commit comments

Comments
 (0)