gtkimcontextwayland: Add native surface offset to input coordinates
authorCarlos Garnacho <carlosg@gnome.org>
Wed, 16 Mar 2022 08:55:20 +0000 (09:55 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 16 Mar 2022 08:57:42 +0000 (09:57 +0100)
commit4dcd0114864886511e1a1a6f4b4f8b86ea19e341
treecd3fc30185fca79be1f5e842cd5866644a52ed30
parenteb599653e653ca185648fef3131ad65e3597fd2d
gtkimcontextwayland: Add native surface offset to input coordinates

We were missing the surface offset (e.g. shadows) at the time of expressing
the text caret location in surface coordinates. Add this offset so the
coordinates are as expected by the compositor.

Fixes: https://gitlab.gnome.org/GNOME/gtk/-/issues/4668
gtk/gtkimcontextwayland.c