We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d399c12 commit d316c6aCopy full SHA for d316c6a
1 file changed
src/x11/window.rs
@@ -200,6 +200,13 @@ impl Window {
200
201
let mut handler = build(&mut crate::Window::new(&mut window));
202
203
+ // Send an initial window resized event so the use is alerted of
204
+ // the correct dpi scaling.
205
+ handler.on_event(
206
+ &mut crate::Window::new(&mut window),
207
+ Event::Window(WindowEvent::Resized(window_info))
208
+ );
209
+
210
let _ = tx.send(Ok(SendableRwh(window.raw_window_handle())));
211
212
window.run_event_loop(&mut handler);
0 commit comments