print-editor: 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/print-editor/print-editor.c

index bfadd5e494e800dbd4ba0b2cfbd77c082fde3b74..ca5d143d06caa5bef3e10b0bb21e91000c9d9cb2 100644 (file)
@@ -871,7 +871,7 @@ activate (GApplication *app)
 
   update_ui ();
 
-  gtk_widget_show (main_window);
+  gtk_window_present (GTK_WINDOW (main_window));
 }
 
 static void