mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +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
|
@ -1290,6 +1290,10 @@ impl IOCompositor {
|
|||
self.pipeline_details.remove(&pipeline_id);
|
||||
}
|
||||
|
||||
pub fn on_embedder_window_moved(&mut self) {
|
||||
self.embedder_coordinates = self.window.get_coordinates();
|
||||
}
|
||||
|
||||
pub fn on_rendering_context_resized(&mut self) -> bool {
|
||||
if self.shutdown_state != ShutdownState::NotShuttingDown {
|
||||
return false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue