Bug 977559 - PointerId we can get from system. r=mbrubeck,smaug
authorMaksim Lebedev <alessarik@gmail.com>
Mon, 14 Apr 2014 01:50:00 +0200
changeset 179201 d49f986956abcb6bd4fc9ea28d03a7e9df1a951c
parent 179200 16fc740d96f5e79eefeda968f6fa88bf37d4b2a0
child 179202 d80acdb6ce2c4f4f979d548b456be052322455be
push id272
push userpvanderbeken@mozilla.com
push dateMon, 05 May 2014 16:31:18 +0000
reviewersmbrubeck, smaug
bugs977559
milestone31.0a1
Bug 977559 - PointerId we can get from system. r=mbrubeck,smaug
widget/windows/winrt/MetroInput.cpp
--- a/widget/windows/winrt/MetroInput.cpp
+++ b/widget/windows/winrt/MetroInput.cpp
@@ -483,16 +483,17 @@ MetroInput::OnPointerNonTouch(UI::Input:
 
   UpdateInputLevel(LEVEL_PRECISE);
 
   WidgetMouseEvent* event =
     new WidgetMouseEvent(true, message, mWidget.Get(),
                          WidgetMouseEvent::eReal,
                          WidgetMouseEvent::eNormal);
   event->button = button;
+  aPoint->get_PointerId(&event->pointerId);
   InitGeckoMouseEventFromPointerPoint(event, aPoint);
   DispatchAsyncEventIgnoreStatus(event);
 }
 
 void
 MetroInput::InitTouchEventTouchList(WidgetTouchEvent* aEvent)
 {
   MOZ_ASSERT(aEvent);