do not pass new size to Resize event

This commit is contained in:
Paul Rouget 2017-11-07 10:21:52 +01:00
parent 4a132437df
commit 8a219e8a81
6 changed files with 14 additions and 16 deletions

View file

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