Index: ui/views/test/ui_controls_factory_desktop_aurax11.cc |
diff --git a/ui/views/test/ui_controls_factory_desktop_aurax11.cc b/ui/views/test/ui_controls_factory_desktop_aurax11.cc |
index 2cd37fe81b4e86b92e4b8102d66ea425bc5bceec..2be0e63bc3b3b8e3315f093f67d431e05c3adf63 100644 |
--- a/ui/views/test/ui_controls_factory_desktop_aurax11.cc |
+++ b/ui/views/test/ui_controls_factory_desktop_aurax11.cc |
@@ -25,6 +25,7 @@ |
#include "ui/events/keycodes/keyboard_code_conversion_x.h" |
#include "ui/events/test/platform_event_waiter.h" |
#include "ui/gfx/x/x11_connection.h" |
+#include "ui/views/test/test_desktop_screen_x11.h" |
#include "ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h" |
namespace views { |
@@ -145,6 +146,10 @@ class UIControlsDesktopX11 : public UIControlsAura { |
aura::test::QueryLatestMousePositionRequestInHost(host); |
host->ConvertPointFromHost(&root_current_location); |
+ auto screen = views::test::TestDesktopScreenX11::GetInstance(); |
+ DCHECK_EQ(screen, display::Screen::GetScreen()); |
+ screen->set_cursor_screen_point(gfx::Point(screen_x, screen_y)); |
+ |
if (root_location != root_current_location && button_down_mask == 0) { |
// Move the cursor because EnterNotify/LeaveNotify are generated with the |
// current mouse position as a result of XGrabPointer() |