projects
/
gtk4.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
76c6a55
)
wayland: Don't crash without xdg_activation_v1
author
Matthias Clasen
<mclasen@redhat.com>
Sun, 26 Mar 2023 14:11:14 +0000
(10:11 -0400)
committer
Michael Catanzaro
<mcatanzaro@gnome.org>
Wed, 29 Mar 2023 00:39:04 +0000
(20:39 -0400)
If the compositor does not support this protocol,
we can't use it.
Fixes: #5701
(cherry picked from commit
3a5282abe1aabebef7d276a01a36f7512cab4b9b
)
gdk/wayland/gdktoplevel-wayland.c
patch
|
blob
|
history
diff --git
a/gdk/wayland/gdktoplevel-wayland.c
b/gdk/wayland/gdktoplevel-wayland.c
index c198477612e71fd20827a3c36e73905a0fd921e0..af201ac8f097a7e3763a2b7cc1b4d2a1dc04955d 100644
(file)
--- 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);