mirror of
https://github.com/rust-windowing/winit.git
synced 2026-08-30 05:10:03 -04:00
Always dispatch a RedrawRequested event after creating a new window (#1175)
This commit is contained in:
@@ -331,8 +331,12 @@ impl WindowBuilder {
|
||||
self,
|
||||
window_target: &EventLoopWindowTarget<T>,
|
||||
) -> Result<Window, OsError> {
|
||||
platform_impl::Window::new(&window_target.p, self.window, self.platform_specific)
|
||||
.map(|window| Window { window })
|
||||
platform_impl::Window::new(&window_target.p, self.window, self.platform_specific).map(
|
||||
|window| {
|
||||
window.request_redraw();
|
||||
Window { window }
|
||||
},
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user