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>
Fri, 3 Jun 2022 11:04:15 +0000 (13:04 +0200)
commit1cdb6ada4e0f289389cfc61a7543b03a00539fb2
treea08c0841c5257b50356142d2a4f1677ec7e4ef64
parent56607e8cfea59a25c883a2947502952b52e41cab
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
(cherry-picked from commit 4b41d4f78ce71b60f0d51837cd1b6a1b346d679d)
gdk/wayland/gdkapplaunchcontext-wayland.c