| Index: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
|
| diff --git a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
|
| index 957d45b009a1da2e0bad15b282fb8ebaddf47954..d1695c136ca7b252851725800e2da4193303303d 100644
|
| --- a/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
|
| +++ b/ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
|
| @@ -856,32 +856,6 @@ void DesktopWindowTreeHostX11::ReleaseCapture() {
|
| g_current_capture->OnCaptureReleased();
|
| }
|
|
|
| -bool DesktopWindowTreeHostX11::QueryMouseLocation(
|
| - gfx::Point* location_return) {
|
| - aura::client::CursorClient* cursor_client =
|
| - aura::client::GetCursorClient(window());
|
| - if (cursor_client && !cursor_client->IsMouseEventsEnabled()) {
|
| - *location_return = gfx::Point(0, 0);
|
| - return false;
|
| - }
|
| -
|
| - ::Window root_return, child_return;
|
| - int root_x_return, root_y_return, win_x_return, win_y_return;
|
| - unsigned int mask_return;
|
| - XQueryPointer(xdisplay_,
|
| - xwindow_,
|
| - &root_return,
|
| - &child_return,
|
| - &root_x_return, &root_y_return,
|
| - &win_x_return, &win_y_return,
|
| - &mask_return);
|
| - *location_return = gfx::Point(
|
| - std::max(0, std::min(bounds_.width(), win_x_return)),
|
| - std::max(0, std::min(bounds_.height(), win_y_return)));
|
| - return (win_x_return >= 0 && win_x_return < bounds_.width() &&
|
| - win_y_return >= 0 && win_y_return < bounds_.height());
|
| -}
|
| -
|
| void DesktopWindowTreeHostX11::SetCursorNative(gfx::NativeCursor cursor) {
|
| XDefineCursor(xdisplay_, xwindow_, cursor.platform());
|
| }
|
|
|