mirror of
https://github.com/brl/mutter.git
synced 2025-03-25 12:43:52 +00:00

`priv->cursor_rect` is stored in physical pixels, not local coordinates. So unscale it before returning from `clutter_text_get_cursor_rect`, which is explicitly documented as returning "actor-relative coordinates". This went missed with fractional scaling support, and unnoticed as nobody uses `clutter_text_get_cursor_rect` yet. But that will soon change. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/1576>