Open
Description
While doing #3890, I reviewed all our instances of [Physical|Logical|]Position
, and categorized them relative to their origin point:
Desktop coordinates:
MonitorHandle::position
WindowEvent::Moved
Window::outer_position
Window coordinates:
Window::surface_position
Window::set_cursor_position
WindowEvent::Pointer*.position
(from Implement the pointer event overhaul #3876) (maybe?)WindowEvent::Drag*.position
(from Rework DnD redux #4079) (maybe?)
Surface coordinates:
Window::set_ime_cursor_area
Window::show_window_menu
MouseScrollDelta::PixelDelta
is a delta, so it has no origin and hence no coordinate system.
I believe that we should make set_cursor_position
, the pointer APIs and the DnD APIs use surface coordinates, since that's the easier coordinate system for users to work with.