Index: ui/aura/root_window_host_linux.cc |
diff --git a/ui/aura/root_window_host_linux.cc b/ui/aura/root_window_host_linux.cc |
index 0e1bb63e68ff7d6784a44e9b8040407271884fec..54317c51cd17498ab2c2c125a6caffee10ec51cb 100644 |
--- a/ui/aura/root_window_host_linux.cc |
+++ b/ui/aura/root_window_host_linux.cc |
@@ -487,7 +487,8 @@ bool RootWindowHostLinux::Dispatch(const base::NativeEvent& event) { |
client::ScreenPositionClient* client = |
client::GetScreenPositionClient(root); |
if (client) { |
- gfx::Point p = gfx::Screen::GetCursorScreenPoint(); |
+ gfx::Point p = gfx::Screen::GetScreenFor(root)-> |
+ GetCursorScreenPoint(); |
client->ConvertPointFromScreen(root, &p); |
if (root->ContainsPoint(p)) { |
root->ConvertPointToNativeScreen(&p); |
@@ -743,8 +744,8 @@ void RootWindowHostLinux::SetBounds(const gfx::Rect& bounds) { |
// Even if the host window's size doesn't change, aura's root window |
// size, which is in DIP, changes when the scale changes. |
float current_scale = delegate_->GetDeviceScaleFactor(); |
- float new_scale = gfx::Screen::GetDisplayNearestWindow( |
- delegate_->AsRootWindow()).device_scale_factor(); |
+ float new_scale = gfx::Screen::GetScreenFor(delegate_->AsRootWindow())-> |
+ GetDisplayNearestWindow(delegate_->AsRootWindow()).device_scale_factor(); |
bool origin_changed = bounds_.origin() != bounds.origin(); |
bool size_changed = bounds_.size() != bounds.size(); |
XWindowChanges changes = {0}; |