button: Fix an event handling gotcha
authorMatthias Clasen <mclasen@redhat.com>
Sat, 28 Mar 2020 18:33:01 +0000 (14:33 -0400)
committerMatthias Clasen <mclasen@redhat.com>
Sat, 28 Mar 2020 18:33:01 +0000 (14:33 -0400)
commite662438675b66c35d70f977e82885e9298e04a07
treecfad6321fea43fb3579b3486ff765c7df0128bd7
parentaa2ca80817aff196ac45f223554ca61ca71458d9
button: Fix an event handling gotcha

We no longer translate event coordinates in-place,
so gdk_event_get_position() returns surface-relative
coordinates, not widget-relative ones. Just use the
coordinates we are given.
gtk/gtkbutton.c