Include device in double-click event on Skia/Win

This commit is contained in:
David Capello 2016-04-20 22:30:45 -03:00
parent 955f86fc9e
commit 47708a6826

View File

@ -411,6 +411,12 @@ namespace she {
msg == WM_LBUTTONDBLCLK ? Event::LeftButton:
msg == WM_RBUTTONDBLCLK ? Event::RightButton:
msg == WM_MBUTTONDBLCLK ? Event::MiddleButton: Event::NoneButton);
if (m_device != Event::UnknownDevice) {
ev.setDevice(m_device);
ev.setPressure(m_pressure);
}
queueEvent(ev);
break;
}