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

@ -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;