Index: ui/views/widget/desktop_aura/desktop_screen_x11.cc |
diff --git a/ui/views/widget/desktop_aura/desktop_screen_x11.cc b/ui/views/widget/desktop_aura/desktop_screen_x11.cc |
index 73c1704d7dcdeca5d2873ae8854bac2f67562945..e787503e4721d59097791aa72783e8ca370dbe35 100644 |
--- a/ui/views/widget/desktop_aura/desktop_screen_x11.cc |
+++ b/ui/views/widget/desktop_aura/desktop_screen_x11.cc |
@@ -149,8 +149,8 @@ gfx::Point DesktopScreenX11::GetCursorScreenPoint() { |
return PixelToDIPPoint(gfx::Point(root_x, root_y)); |
} |
-gfx::NativeWindow DesktopScreenX11::GetWindowUnderCursor() { |
- return GetWindowAtScreenPoint(GetCursorScreenPoint()); |
+bool DesktopScreenX11::IsWindowUnderCursor(gfx::NativeWindow window) { |
+ return GetWindowAtScreenPoint(GetCursorScreenPoint()) == window; |
} |
gfx::NativeWindow DesktopScreenX11::GetWindowAtScreenPoint( |