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

Unified Diff: ash/display/mouse_cursor_event_filter.cc

Issue 340773003: Enable pointer warping with multiple displays under Ozone (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 6 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/display/mouse_cursor_event_filter.cc
diff --git a/ash/display/mouse_cursor_event_filter.cc b/ash/display/mouse_cursor_event_filter.cc
index 29b417d0a8239803ca497b05b68909a949083009..94501942ef88499855949b42f9ae696e0c4e40fa 100644
--- a/ash/display/mouse_cursor_event_filter.cc
+++ b/ash/display/mouse_cursor_event_filter.cc
@@ -42,7 +42,12 @@ const int kIndicatorThickness = 1;
// This is to disable the new mouse warp logic in case
// it caused the problem in the branch.
+// Events from Ozone don't have a native event
+#if defined(USE_OZONE)
+bool enable_mouse_warp_in_native_coords = false;
+#else
bool enable_mouse_warp_in_native_coords = true;
+#endif
void ConvertPointFromScreenToNative(const aura::Window* root_window,
gfx::Point* point) {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698