Fix crash on hidpi with wayland (#6508)

This commit is contained in:
MaeIsBad authored and GitHub committed 2025-02-08 13:33:12 -07:00
1 parent 5243d73353
commit d1684d38e8
1 file changed
+2
+2
View File
@@ -909,6 +909,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;
}
}