Fix behaviour of window resizing on Windows.

This commit is contained in:
Josh Matthews 2019-06-01 14:40:07 -04:00
parent 9d9fff3b0a
commit 4c0afcea97
3 changed files with 14 additions and 1 deletions

View file

@ -622,6 +622,7 @@ impl<Window: WindowMethods + ?Sized> IOCompositor<Window> {
}
self.send_window_size(WindowSizeType::Resize);
self.composite_if_necessary(CompositingReason::Resize);
}
pub fn on_mouse_window_event_class(&mut self, mouse_window_event: MouseWindowEvent) {
@ -1525,4 +1526,6 @@ pub enum CompositingReason {
NewWebRenderFrame,
/// WebRender has processed a scroll event and has generated a new frame.
NewWebRenderScrollFrame,
/// The window has been resized and will need to be synchronously repainted.
Resize,
}