gtkwidget: Avoid doubly coordinate conversion when emulating press
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 19 Jun 2018 11:17:57 +0000 (13:17 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 19 Jun 2018 11:47:26 +0000 (13:47 +0200)
commitde30a74cdf43c1fba67d88bae3931a79fef38af1
tree0067758d1ad49db3bfd760044f32e7dea9aac0f4
parent64313f4a4b8fe3636ef5fb13894885744ebd52f8
gtkwidget: Avoid doubly coordinate conversion when emulating press

We are poking again into the event propagation machinery, which
expects events in toplevel coordinates. Since we can't fetch the
original event back at this point, translate the coordinates
back to the toplevel so the emulated press ends up in the right
place.

https://gitlab.gnome.org/GNOME/gtk/issues/1159

Closes: #1159
gtk/gtkwidget.c