Update window.screenX and window.screenY when moving the embedder window (#35246)

Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
webbeef 2025-02-12 19:13:32 -08:00 committed by GitHub
parent f593b6d426
commit 8cd280ca3b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 34 additions and 22 deletions

View file

@ -391,7 +391,7 @@ impl ApplicationHandler<WakerEvent> for App {
};
let window = window.clone();
if event == winit::event::WindowEvent::RedrawRequested {
if event == WindowEvent::RedrawRequested {
// We need to redraw the window for some reason.
trace!("RedrawRequested");
@ -441,7 +441,7 @@ impl ApplicationHandler<WakerEvent> for App {
"Sync WebView size with Window Resize event",
);
}
if response.repaint && *event != winit::event::WindowEvent::RedrawRequested {
if response.repaint && *event != WindowEvent::RedrawRequested {
// Request a winit redraw event, so we can recomposite, update and paint
// the minibrowser, and present the new frame.
window.winit_window().unwrap().request_redraw();