backend-x11: Simplify XSync initialization handling a bit

This commit is contained in:
Jasper St. Pierre 2014-04-22 12:45:13 -04:00
parent bb4896f1af
commit 28666da6a1

View File

@ -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);