Commit ec64091f authored by spang's avatar spang Committed by Commit bot

ozone: evdev: Set modifier flags on touch events

This fixes a regression vs X11 where all touch events are missing
modifier flags.

BUG=450650
TEST=Open http://www.rbyers.net/eventTest.html on link, hold shift, and
     tap the touchscreen. Page shows "shift" on the click event line.

Review URL: https://codereview.chromium.org/887743002

Cr-Commit-Position: refs/heads/master@{#313788}
parent d9f6557e
......@@ -157,8 +157,8 @@ void EventFactoryEvdev::DispatchTouchEvent(const TouchEventParams& params) {
&radius_y);
scoped_ptr<TouchEvent> touch_event(new TouchEvent(
params.type, gfx::PointF(x, y),
/* flags */ 0, params.touch_id, params.timestamp, radius_x, radius_y,
params.type, gfx::PointF(x, y), modifiers_.GetModifierFlags(),
params.touch_id, params.timestamp, radius_x, radius_y,
/* angle */ 0., params.pressure));
touch_event->set_source_device_id(params.device_id);
PostUiEvent(touch_event.Pass());
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment