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

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: rebase 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
« no previous file with comments | « chrome/browser/ui/ash/tabs/dock_info_ash.cc ('k') | ui/aura/root_window_host_linux.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/root_window.cc
diff --git a/ui/aura/root_window.cc b/ui/aura/root_window.cc
index 95eeee18af7a6500828d8ff45b62d487fca9a809..8ac31e76f47df6b693badcdfd21e7dbc53534c80 100644
--- a/ui/aura/root_window.cc
+++ b/ui/aura/root_window.cc
@@ -1037,13 +1037,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;
« no previous file with comments | « chrome/browser/ui/ash/tabs/dock_info_ash.cc ('k') | ui/aura/root_window_host_linux.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698