mirror of
https://github.com/servo/servo.git
synced 2025-08-15 18:35:33 +01:00
Update window.screenX and window.screenY when moving the embedder window (#35246)
Signed-off-by: webbeef <me@webbeef.org>
This commit is contained in:
parent
f593b6d426
commit
8cd280ca3b
4 changed files with 34 additions and 22 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue