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

Unified Diff: components/exo/shell_surface.cc

Issue 2812663002: exo: Fix cursor scale when crossing displays (Closed)
Patch Set: Rebase Created 3 years, 7 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: components/exo/shell_surface.cc
diff --git a/components/exo/shell_surface.cc b/components/exo/shell_surface.cc
index 06c675e5f1fd8e66dfdcd1c0c4c2688ccf21c899..5769513b161f987698d31cc0a0f66374949083b5 100644
--- a/components/exo/shell_surface.cc
+++ b/components/exo/shell_surface.cc
@@ -11,7 +11,6 @@
#include "ash/public/cpp/shell_window_ids.h"
#include "ash/public/cpp/window_properties.h"
#include "ash/public/interfaces/window_pin_type.mojom.h"
-#include "ash/shell_port.h"
#include "ash/wm/drag_window_resizer.h"
#include "ash/wm/window_resizer.h"
#include "ash/wm/window_state.h"
@@ -153,10 +152,7 @@ class CustomWindowTargeter : public aura::WindowTargeter {
class CustomWindowResizer : public ash::WindowResizer {
public:
explicit CustomWindowResizer(ash::wm::WindowState* window_state)
- : WindowResizer(window_state) {
- ash::ShellPort::Get()->LockCursor();
- }
- ~CustomWindowResizer() override { ash::ShellPort::Get()->UnlockCursor(); }
+ : WindowResizer(window_state) {}
// Overridden from ash::WindowResizer:
void Drag(const gfx::Point& location, int event_flags) override {}
« 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