Send mouse move events to the the previous layer when directing events to a new one for the first time. Resolves #7865.

This commit is contained in:
Josh Matthews 2015-11-04 03:40:13 -05:00
parent 4b9fa13f2f
commit 9529196d2f
4 changed files with 41 additions and 12 deletions

View file

@ -385,7 +385,7 @@ impl CompositorLayer for Layer<CompositorData> {
compositor: &IOCompositor<Window>,
cursor: TypedPoint2D<LayerPixel, f32>)
where Window: WindowMethods {
self.send_event(compositor, MouseMoveEvent(cursor.to_untyped()));
self.send_event(compositor, MouseMoveEvent(Some(cursor.to_untyped())));
}
fn send_event<Window>(&self,