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 23, 2024
1 parent 6f375e2 commit 773b749
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 773b749

Please sign in to comment.