diff --git a/gtk/gtkentry.c b/gtk/gtkentry.c index a032b9db87..f84783aeab 100644 --- a/gtk/gtkentry.c +++ b/gtk/gtkentry.c @@ -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;