Skip to content

Commit

Permalink
Fix crash on hidpi with wayland
Browse files Browse the repository at this point in the history
  • Loading branch information
MaeIsBad committed Dec 22, 2024
1 parent 4906789 commit 831a436
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions window/src/os/wayland/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -911,6 +911,8 @@ impl WaylandWindowInner {
) {
self.surface().attach(Some(buffer.wl_buffer()), 0, 0);
self.surface().set_buffer_scale(factor as i32);
self.surface().commit();

self.surface_factor = factor;
}
}
Expand Down

0 comments on commit 831a436

Please sign in to comment.