gdk/wayland: Check the GdkSurface wl_surface before using it for activation
authorCarlos Garnacho <carlosg@gnome.org>
Thu, 2 Jun 2022 21:05:39 +0000 (23:05 +0200)
committerCarlos Garnacho <carlosg@gnome.org>
Thu, 2 Jun 2022 21:08:40 +0000 (23:08 +0200)
commit4b41d4f78ce71b60f0d51837cd1b6a1b346d679d
tree7a857f009a0e400b0f0e39f3fa9e3e437a59aa02
parentfb68600d88d4d334f7da7d079b106a1ef14503a6
gdk/wayland: Check the GdkSurface wl_surface before using it for activation

Double check the GdkSurface has a wl_surface before using it as the activation
token source, since we cannot use NULL surfaces here.

Fixes: https://gitlab.gnome.org/GNOME/gnome-control-center/-/issues/1862
gdk/wayland/gdkapplaunchcontext-wayland.c