mirror of
https://github.com/brl/mutter.git
synced 2025-06-14 01:09:30 +00:00
x11: Let X11 connection owners call XSynchronize() themselves
Only make the context carry the boolean state, but move the two libX11 calls into their corresponding connection handler objects. Part-of: <https://gitlab.gnome.org/GNOME/mutter/-/merge_requests/2444>
This commit is contained in:
@ -821,6 +821,7 @@ meta_backend_x11_initable_init (GInitable *initable,
|
||||
GCancellable *cancellable,
|
||||
GError **error)
|
||||
{
|
||||
MetaContext *context = meta_backend_get_context (META_BACKEND (initable));
|
||||
MetaBackendX11 *x11 = META_BACKEND_X11 (initable);
|
||||
MetaBackendX11Private *priv = meta_backend_x11_get_instance_private (x11);
|
||||
Display *xdisplay;
|
||||
@ -842,6 +843,8 @@ meta_backend_x11_initable_init (GInitable *initable,
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
XSynchronize (xdisplay, meta_context_is_x11_sync (context));
|
||||
|
||||
priv->xdisplay = xdisplay;
|
||||
priv->xscreen = DefaultScreenOfDisplay (xdisplay);
|
||||
priv->xcb = XGetXCBConnection (priv->xdisplay);
|
||||
|
Reference in New Issue
Block a user