mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
do not pass new size to Resize event
This commit is contained in:
parent
4a132437df
commit
8a219e8a81
6 changed files with 14 additions and 16 deletions
|
@ -647,8 +647,8 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
}
|
||||
}
|
||||
|
||||
pub fn on_resize_window_event(&mut self, new_size: DeviceUintSize) {
|
||||
debug!("compositor resizing to {:?}", new_size.to_untyped());
|
||||
pub fn on_resize_window_event(&mut self) {
|
||||
debug!("compositor resize requested");
|
||||
|
||||
// A size change could also mean a resolution change.
|
||||
let new_scale_factor = self.window.hidpi_factor();
|
||||
|
@ -665,7 +665,7 @@ impl<Window: WindowMethods> IOCompositor<Window> {
|
|||
return;
|
||||
}
|
||||
|
||||
self.frame_size = new_size;
|
||||
self.frame_size = self.window.framebuffer_size();
|
||||
self.window_rect = new_window_rect;
|
||||
|
||||
self.send_window_size(WindowSizeType::Resize);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue