Always dispatch a RedrawRequested event after creating a new window (#1175)
This commit is contained in:
parent
5631cc2528
commit
2b5f9c52a6
2 changed files with 7 additions and 2 deletions
|
|
@ -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 }
|
||||
},
|
||||
)
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue