Skip to content
Permalink
Browse files

With WebRender, only send resize events when window size is valid.

Fixes WR 116.
  • Loading branch information
gw3583 committed Feb 29, 2016
1 parent 872ee19 commit 78b284cefe319708b5d67891d0d0b794db039798
Showing with 4 additions and 3 deletions.
  1. +4 −3 components/compositing/compositor.rs
@@ -353,10 +353,11 @@ impl webrender_traits::RenderNotifier for RenderNotifier {
pipeline_id: webrender_traits::PipelineId,
size: Option<Size2D<f32>>) {
let pipeline_id = pipeline_id.from_webrender();
let size = size.unwrap_or(Size2D::zero());

self.constellation_chan.send(ConstellationMsg::FrameSize(pipeline_id,
size)).unwrap();
if let Some(size) = size {
self.constellation_chan.send(ConstellationMsg::FrameSize(pipeline_id,
size)).unwrap();
}
}
}

0 comments on commit 78b284c

Please sign in to comment.
You can’t perform that action at this time.