demo: Use gtk_window_present()
authorGuido Günther <agx@sigxcpu.org>
Tue, 11 Jan 2022 19:27:25 +0000 (20:27 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 16 Mar 2022 18:50:21 +0000 (19:50 +0100)
This lets xdg-activation work as otherwise gdk_wayland_surface_focus is
never invoked.

demos/gtk-demo/main.c

index da6b5db73a4ad32e04508b8ac9f0fc0ed651e055..a31ce367906ee591f02e4bd4b12e9c8280c41321 100644 (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);