Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(18)

Unified Diff: ui/aura/root_window.cc

Issue 10948020: Convert native mouse locations to the locations in screen coordinate in RootWindowHostLinux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: ui/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index b261a2a20d442b970f87a071500477c737cf7206..386cdac72900f739ccf2c400482d0ba1a3444ea6 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -1036,13 +1036,9 @@ bool RootWindow::DispatchMouseEventToTarget(ui::MouseEvent* event,
break;
}
if (target) {
- int flags = event->flags();
- gfx::Point location_in_window = event->location();
- Window::ConvertPointToTarget(this, target, &location_in_window);
- if (IsNonClientLocation(target, location_in_window))
- flags |= ui::EF_IS_NON_CLIENT;
- event->set_flags(flags);
event->ConvertLocationToTarget(static_cast<Window*>(this), target);
+ if (IsNonClientLocation(target, event->location()))
+ event->set_flags(event->flags() | ui::EF_IS_NON_CLIENT);
return ProcessMouseEvent(target, event);
}
return false;

Powered by Google App Engine
This is Rietveld 408576698