wayland: xdg-activation: Don't assume there's a focus surface
authorGuido Günther <agx@sigxcpu.org>
Tue, 11 Jan 2022 19:21:55 +0000 (20:21 +0100)
committerCarlos Garnacho <carlosg@gnome.org>
Wed, 16 Mar 2022 18:50:21 +0000 (19:50 +0100)
commit108b7025dc814e70b98c98634aa3b9e7e77e3446
treebd669e87798d7e1269cc34599504bbdedda5d64a
parent9822d2b6b2ace41cb4c92e41545ea7dc66fd386c
wayland: xdg-activation: Don't assume there's a focus surface

Tools like gtk4-launch can't set surface on the activation token so
don't require it. If the compositor requires it we can't do anything
about it anyway. This avoids a critical:

   (gtk4-launch:23497): Gdk-CRITICAL **: 17:07:24.704: gdk_wayland_surface_get_wl_surface: assertion 'GDK_IS_WAYLAND_SURFACE (surface)' failed

Fixes: be4216e051 ("gdk/wayland: Support the xdg-activation wayland protocol")
Signed-off-by: Guido Günther <agx@sigxcpu.org>
gdk/wayland/gdkapplaunchcontext-wayland.c