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

Unified Diff: ui/views/mus/window_tree_host_mus.cc

Issue 1906603002: mus: Fix event transformation in client code. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: . Created 4 years, 8 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 | « ui/events/event_unittest.cc ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/views/mus/window_tree_host_mus.cc
diff --git a/ui/views/mus/window_tree_host_mus.cc b/ui/views/mus/window_tree_host_mus.cc
index c388453e23044cf4990921f9d9f011864cd4dd38..24325157289de05f446f6a7fbba3ddce4d2d56f6 100644
--- a/ui/views/mus/window_tree_host_mus.cc
+++ b/ui/views/mus/window_tree_host_mus.cc
@@ -24,11 +24,6 @@ WindowTreeHostMus::WindowTreeHostMus(shell::Connector* connector,
show_state_(ui::PLATFORM_WINDOW_STATE_UNKNOWN) {
SetPlatformWindow(
base::WrapUnique(new PlatformWindowMus(this, connector, window)));
- // The location of events is already transformed, and there is no way to
- // correctly determine the reverse transform. So, don't attempt to transform
- // event locations, else the root location is wrong.
- // TODO(sky): we need to transform for device scale though.
- dispatcher()->set_transform_events(false);
compositor()->SetHostHasTransparentBackground(true);
input_method_.reset(new InputMethodMUS(this, window));
« no previous file with comments | « ui/events/event_unittest.cc ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698