mirror of
https://github.com/brl/mutter.git
synced 2024-11-26 10:00:45 -05:00
backend-x11: Simplify XSync initialization handling a bit
This commit is contained in:
parent
bb4896f1af
commit
28666da6a1
@ -161,10 +161,8 @@ meta_backend_x11_post_init (MetaBackend *backend)
|
|||||||
|
|
||||||
priv->source = x_event_source_new (backend);
|
priv->source = x_event_source_new (backend);
|
||||||
|
|
||||||
if (!XSyncQueryExtension (priv->xdisplay, &priv->xsync_event_base, &priv->xsync_error_base))
|
if (!XSyncQueryExtension (priv->xdisplay, &priv->xsync_event_base, &priv->xsync_error_base) ||
|
||||||
meta_fatal ("Could not initialize XSync");
|
!XSyncInitialize (priv->xdisplay, &major, &minor))
|
||||||
|
|
||||||
if (!XSyncInitialize (priv->xdisplay, &major, &minor))
|
|
||||||
meta_fatal ("Could not initialize XSync");
|
meta_fatal ("Could not initialize XSync");
|
||||||
|
|
||||||
META_BACKEND_CLASS (meta_backend_x11_parent_class)->post_init (backend);
|
META_BACKEND_CLASS (meta_backend_x11_parent_class)->post_init (backend);
|
||||||
|
Loading…
Reference in New Issue
Block a user