mirror of
https://gitlab.gnome.org/GNOME/gtk.git
synced 2024-12-28 22:41:43 +00:00
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:
parent
675a4111e9
commit
fcbbaae63c
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user