tooltip: Initialize tooltip coords to given event coords

Otherwise the coordinates passed to the query-tooltip signal are always
0.
This commit is contained in:
Timm Bäder 2019-04-26 07:34:18 +02:00 committed by Benjamin Otte
parent 2bd9b42479
commit 4bb6e70d01

View File

@ -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;