Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
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 78b284c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions components/compositing/compositor.rs
Expand Up @@ -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();
}
}
}

Expand Down

0 comments on commit 78b284c

Please sign in to comment.