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

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

Issue 2341483004: Fix event dispatching and window resizing in high-dpi mode. (Closed)
Patch Set: remove client area changes Created 4 years, 2 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/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 caed894310e48e65017d0b3d2b56882ca5b1a22f..41b1943a11bde88e33fa4e53c42e5210218a04a0 100644
--- a/ui/views/mus/window_tree_host_mus.cc
+++ b/ui/views/mus/window_tree_host_mus.cc
@@ -47,11 +47,6 @@ WindowTreeHostMus::WindowTreeHostMus(NativeWidgetMus* native_widget,
// Initialize the stub platform window bounds to those of the ui::Window.
platform_window()->SetBounds(window->bounds());
- // 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_ = base::MakeUnique<InputMethodMus>(this, window);

Powered by Google App Engine
This is Rietveld 408576698