From: Matthias Clasen Date: Sun, 26 Mar 2023 14:11:14 +0000 (-0400) Subject: wayland: Don't crash without xdg_activation_v1 X-Git-Tag: archive/raspbian/4.12.3+ds-1+rpi1~1^2^2^2~22^2~1^2~499^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=3a5282ab;p=gtk4.git wayland: Don't crash without xdg_activation_v1 If the compositor does not support this protocol, we can't use it. Fixes: #5701 --- diff --git a/gdk/wayland/gdktoplevel-wayland.c b/gdk/wayland/gdktoplevel-wayland.c index c198477612..af201ac8f0 100644 --- a/gdk/wayland/gdktoplevel-wayland.c +++ b/gdk/wayland/gdktoplevel-wayland.c @@ -991,7 +991,7 @@ gdk_wayland_toplevel_set_startup_id (GdkWaylandToplevel *toplevel, startup_id = free_me; } - if (startup_id) + if (display->xdg_activation && startup_id) xdg_activation_v1_activate (display->xdg_activation, startup_id, surface->display_server.wl_surface);