window: Make sure we call gdk_wayland_surface_focus

When using xdg_activation this is responsible for submitting
the activation token / startup id to the compositor.
This commit is contained in:
Guido Günther 2021-08-25 12:17:47 +02:00 committed by Carlos Garnacho
parent 38bbcb7411
commit c5da579cda

View File

@ -5271,14 +5271,15 @@ gtk_window_present_with_time (GtkWindow *window,
#endif
timestamp = gtk_get_current_event_time ();
}
gdk_toplevel_focus (GDK_TOPLEVEL (surface), timestamp);
}
else
{
priv->initial_timestamp = timestamp;
gtk_widget_show (widget);
}
g_assert (priv->surface != NULL);
gdk_toplevel_focus (GDK_TOPLEVEL (priv->surface), timestamp);
}
/**