Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
index f792797e855ba9bce9df44581b395eb5a55fe9ea..bb8ba99593f489b8c2d8e061657c4c4c4f392fc8 100644 |
--- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
+++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc |
@@ -1442,7 +1442,7 @@ void DesktopWindowTreeHostX11::UpdateWMUserTime( |
type == ui::ET_KEY_PRESSED || |
type == ui::ET_TOUCH_PRESSED) { |
unsigned long wm_user_time_ms = static_cast<unsigned long>( |
- ui::EventTimeFromNative(event).InMilliseconds()); |
+ (ui::EventTimeFromNative(event) - base::TimeTicks()).InMilliseconds()); |
XChangeProperty(xdisplay_, |
xwindow_, |
atom_cache_.GetAtom("_NET_WM_USER_TIME"), |