diff options
Diffstat (limited to 'ui/ozone/platform/caca/caca_event_source.cc')
-rw-r--r-- | ui/ozone/platform/caca/caca_event_source.cc | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/ui/ozone/platform/caca/caca_event_source.cc b/ui/ozone/platform/caca/caca_event_source.cc index 78d3344..e4ddc70 100644 --- a/ui/ozone/platform/caca/caca_event_source.cc +++ b/ui/ozone/platform/caca/caca_event_source.cc @@ -216,8 +216,10 @@ void CacaEventSource::OnInputEvent(caca_event_t* event, CacaWindow* window) { flags = modifier_flags_ | changed_flags; } gfx::PointF location = TranslateLocation(last_cursor_location_, window); - ui::MouseEvent mouse_event(type, location, location, EventTimeForNow(), - flags, changed_flags); + ui::MouseEvent mouse_event(type, gfx::Point(), gfx::Point(), + EventTimeForNow(), flags, changed_flags); + mouse_event.set_location_f(location); + mouse_event.set_root_location_f(location); window->OnCacaEvent(&mouse_event); break; } |