Skip to content

Commit

Permalink
On Orbital, fix window resize.
Browse files Browse the repository at this point in the history
  • Loading branch information
jackpot51 committed Feb 10, 2024
1 parent e435fc9 commit 2b44e7a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
- Update `drm` to 0.11 (#178)
* Fixes build on architectures where drm-rs did not have generated bindings.
- Update x11rb to v0.13 (#183)
- On Orbital, fix window resize.

# 0.4.0

Expand Down
2 changes: 1 addition & 1 deletion src/orbital.rs
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ impl<D: HasDisplayHandle, W: HasWindowHandle> OrbitalImpl<D, W> {
pub fn resize(&mut self, width: NonZeroU32, height: NonZeroU32) -> Result<(), SoftBufferError> {
let width = width.get();
let height = height.get();
if width != self.width && height != self.height {
if width != self.width || height != self.height {
self.presented = false;
self.width = width;
self.height = height;
Expand Down

0 comments on commit 2b44e7a

Please sign in to comment.