Skip to content

Commit

Permalink
implement as_window for Web window
Browse files Browse the repository at this point in the history
  • Loading branch information
jgcodes2020 committed Oct 19, 2024
1 parent a6251ff commit 5fa22f6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/platform_impl/web/window.rs
Original file line number Diff line number Diff line change
Expand Up @@ -184,6 +184,10 @@ impl RootSurface for Window {
fn rwh_06_window_handle(&self) -> &dyn rwh_06::HasWindowHandle {
self
}

fn as_window(&self) -> Option<&dyn RootWindow> {
Some(self)
}
}

impl RootWindow for Window {
Expand Down

0 comments on commit 5fa22f6

Please sign in to comment.