wayland: Don't crash without xdg_activation_v1
This backports 3cdb6392102079d85ea38fa24d58c1824fe4dd37 to GTK 3. See: #5701
This commit is contained in:
parent
1afbe2d08b
commit
d8190aae3f
@ -4179,7 +4179,7 @@ gdk_wayland_window_set_startup_id (GdkWindow *window,
|
||||
}
|
||||
|
||||
#ifdef HAVE_XDG_ACTIVATION
|
||||
if (startup_id)
|
||||
if (display_wayland->xdg_activation && startup_id)
|
||||
{
|
||||
xdg_activation_v1_activate (display_wayland->xdg_activation,
|
||||
startup_id,
|
||||
|
Loading…
Reference in New Issue
Block a user