gtklinkbutton: Set cursor on button's event window
authorCarlos Garnacho <carlosg@gnome.org>
Tue, 25 Jul 2017 13:46:01 +0000 (15:46 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Tue, 25 Jul 2017 16:36:12 +0000 (18:36 +0200)
commit0daf796763b98cd30775bc4bef959ce1b0aa0287
tree47882ba023158016b9c6367511125a90aad36d62
parentb53a6fb092590f157ba61ee66aa9970fb5cdeb51
gtklinkbutton: Set cursor on button's event window

Setting the cursor on the widget window (i.e. the parent widget's) is
finicky because the cursor needs to be updated on crossing events, and
will yield the wrong result for other master devices that happen to be
in other areas of the same parent widget's window.

Just set it always on the event window created by the GtkButton parent
class. That window was causing the crossing events, so the rectangle
that gets the hand cursor set will be the same size, and we don't need
to track pointer crossing state that way.

https://bugzilla.gnome.org/show_bug.cgi?id=785375
gtk/gtklinkbutton.c