Skip to content

Commit

Permalink
chore: remove changelog and unix resize event
Browse files Browse the repository at this point in the history
  • Loading branch information
pewsheen committed Jul 22, 2024
1 parent f82ddbe commit a182fb6
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 25 deletions.
5 changes: 0 additions & 5 deletions .changes/example-winit-unfocus-crash.md

This file was deleted.

20 changes: 0 additions & 20 deletions examples/winit.rs
Original file line number Diff line number Diff line change
Expand Up @@ -72,26 +72,6 @@ fn main() -> wry::Result<()> {
})
.unwrap();
}
#[cfg(any(
target_os = "linux",
target_os = "dragonfly",
target_os = "freebsd",
target_os = "netbsd",
target_os = "openbsd",
))]
Event::WindowEvent {
event: WindowEvent::Resized(size),
..
} => {
use wry::dpi::{PhysicalPosition, PhysicalSize};

_webview
.set_bounds(wry::Rect {
position: PhysicalPosition::new(0, 0).into(),
size: PhysicalSize::new(size.width, size.height).into(),
})
.unwrap();
}
Event::WindowEvent {
event: WindowEvent::CloseRequested,
..
Expand Down

0 comments on commit a182fb6

Please sign in to comment.