x11/backend-x11: Close the X11 Display where it's created

We open the clutter backend display inside MetaBackendX11, but we end
up closing it MetaClutterBackendX11, that is not it's direct owner.

So do it where it belongs

Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/3020>
This commit is contained in:
Marco Trevisan (Treviño) 2023-05-24 15:25:33 +02:00 committed by Marge Bot
parent 889cd056e7
commit f013764b57
2 changed files with 2 additions and 2 deletions

View File

@ -942,6 +942,8 @@ meta_backend_x11_dispose (GObject *object)
}
G_OBJECT_CLASS (meta_backend_x11_parent_class)->dispose (object);
g_clear_pointer (&priv->xdisplay, XCloseDisplay);
}
static void

View File

@ -153,8 +153,6 @@ meta_clutter_backend_x11_finalize (GObject *gobject)
cogl_xlib_filter,
clutter_backend_x11);
XCloseDisplay (clutter_backend_x11->xdisplay);
G_OBJECT_CLASS (meta_clutter_backend_x11_parent_class)->finalize (gobject);
}