It can apparently happen that we get focus in events
on windows after gtk_application_shutdown() has been
called. Avoid an unnecessary crash in this case.
See
https://bugzilla.redhat.com/show_bug.cgi?id=
1176339
priv->windows = g_list_concat (link, priv->windows);
}
- gtk_application_impl_active_window_changed (application->priv->impl, window);
+ if (application->priv->impl)
+ gtk_application_impl_active_window_changed (application->priv->impl, window);
+
g_object_notify (G_OBJECT (application), "active-window");
return FALSE;