summaryrefslogtreecommitdiff
path: root/gtk/gtktooltip.c
diff options
context:
space:
mode:
authorTimm Bäder <mail@baedert.org>2019-04-26 07:34:18 +0200
committerBenjamin Otte <otte@redhat.com>2019-04-26 18:05:32 +0200
commit4bb6e70d014db28bed77624a21911079f4a440a8 (patch)
tree708993700a1a83aa1e3854f15494ccc6dfc76e66 /gtk/gtktooltip.c
parent2bd9b42479bfddf2a47fa55e6b56f76171c3fad7 (diff)
downloadgtk+-4bb6e70d014db28bed77624a21911079f4a440a8.tar.gz
tooltip: Initialize tooltip coords to given event coords
Otherwise the coordinates passed to the query-tooltip signal are always 0.
Diffstat (limited to 'gtk/gtktooltip.c')
-rw-r--r--gtk/gtktooltip.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gtk/gtktooltip.c b/gtk/gtktooltip.c
index 794d65c30d..22a7e68b1f 100644
--- a/gtk/gtktooltip.c
+++ b/gtk/gtktooltip.c
@@ -923,7 +923,7 @@ gtk_tooltip_handle_event_internal (GdkEventType event_type,
gdouble dx,
gdouble dy)
{
- int x = 0, y = 0;
+ int x = dx, y = dy;
GdkDisplay *display;
GtkTooltip *current_tooltip;