entry: Check gdk_event_get_coords return value

We use the x/y values later on to decide what to do with the event.
This commit is contained in:
Timm Bäder 2018-02-26 12:14:10 +01:00
parent 354eab70da
commit 9db76cebb4

View File

@ -3525,8 +3525,6 @@ gtk_entry_event (GtkWidget *widget,
gdouble x, y;
gint i = 0;
gdk_event_get_coords (event, &x, &y);
if (gdk_event_get_event_type (event) == GDK_FOCUS_CHANGE)
{
gboolean focus_in;
@ -3549,6 +3547,9 @@ gtk_entry_event (GtkWidget *widget,
return GDK_EVENT_PROPAGATE;
}
if (!gdk_event_get_coords (event, &x, &y))
return GDK_EVENT_PROPAGATE;
for (i = 0; i < MAX_ICONS; i++)
{
GtkAllocation icon_alloc;