On Orbital, fix window resize.

This commit is contained in:
Jeremy Soller 2024-02-09 21:03:53 -07:00
parent 0bb8598935
commit 6e75b1ad7e
2 changed files with 2 additions and 1 deletions

View file

@ -6,6 +6,7 @@
- Update `drm` to 0.11 (#178) - Update `drm` to 0.11 (#178)
* Fixes build on architectures where drm-rs did not have generated bindings. * Fixes build on architectures where drm-rs did not have generated bindings.
- Update x11rb to v0.13 (#183) - Update x11rb to v0.13 (#183)
- On Orbital, fix window resize.
# 0.4.0 # 0.4.0

View file

@ -90,7 +90,7 @@ impl<D: HasDisplayHandle, W: HasWindowHandle> OrbitalImpl<D, W> {
pub fn resize(&mut self, width: NonZeroU32, height: NonZeroU32) -> Result<(), SoftBufferError> { pub fn resize(&mut self, width: NonZeroU32, height: NonZeroU32) -> Result<(), SoftBufferError> {
let width = width.get(); let width = width.get();
let height = height.get(); let height = height.get();
if width != self.width && height != self.height { if width != self.width || height != self.height {
self.presented = false; self.presented = false;
self.width = width; self.width = width;
self.height = height; self.height = height;