demo: Use gtk_window_present()

This lets xdg-activation work as otherwise gdk_wayland_surface_focus is
never invoked.
This commit is contained in:
Guido Günther 2022-01-11 20:27:25 +01:00 committed by Carlos Garnacho
parent 5ba02e3459
commit db8339ca66

View File

@ -1040,7 +1040,7 @@ out:
g_signal_connect_swapped (G_OBJECT (demo), "destroy", G_CALLBACK (g_application_quit), app);
}
else
gtk_widget_show (GTK_WIDGET (window));
gtk_window_present (GTK_WINDOW (window));
if (autoquit)
g_timeout_add_seconds (1, auto_quit, app);