From 5aa104c48d29b0a52b2f6ff074db1e2485a814f5 Mon Sep 17 00:00:00 2001 From: Bilal Elmoussaoui Date: Sun, 20 Nov 2022 12:57:53 +0100 Subject: [PATCH] xwayland: Correct the flag of the surface property As the surface is cleaned up when the window is dropped, marking it as construct property more correct & mark it as static_strings while at it. Fixes a regression caused by https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2418 Part-of: --- src/wayland/meta-window-xwayland.c | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/wayland/meta-window-xwayland.c b/src/wayland/meta-window-xwayland.c index 5dd179e94..a0cd10001 100644 --- a/src/wayland/meta-window-xwayland.c +++ b/src/wayland/meta-window-xwayland.c @@ -325,7 +325,9 @@ meta_window_xwayland_class_init (MetaWindowXwaylandClass *klass) "Surface", "The corresponding Wayland surface", META_TYPE_WAYLAND_SURFACE, - G_PARAM_CONSTRUCT_ONLY | G_PARAM_READWRITE); + G_PARAM_CONSTRUCT | + G_PARAM_READWRITE | + G_PARAM_STATIC_STRINGS); g_object_class_install_properties (gobject_class, PROP_LAST, obj_props); }