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 18:50:21 +0000 (19:50 +0100)
commitd808298b68b919b4cd9eb834b2da8d0d72759c55
tree200966bfc347a3ae14f60cfb66dfec37a8965357
parent108b7025dc814e70b98c98634aa3b9e7e77e3446
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