window: Make sure an event has a display

This fixes a crash happening later on when something tries to access the
event's display.
This commit is contained in:
Timm Bäder 2017-12-18 21:58:53 +01:00
parent 675a4111e9
commit fcbbaae63c

View File

@ -7639,6 +7639,7 @@ do_focus_change (GtkWidget *widget,
continue;
fevent = gdk_event_new (GDK_FOCUS_CHANGE);
gdk_event_set_display (fevent, gtk_widget_get_display (widget));
fevent->any.type = GDK_FOCUS_CHANGE;
fevent->any.window = window;