From 28666da6a197d510d0c147075415ef5378e6da4d Mon Sep 17 00:00:00 2001 From: "Jasper St. Pierre" Date: Tue, 22 Apr 2014 12:45:13 -0400 Subject: [PATCH] backend-x11: Simplify XSync initialization handling a bit --- src/backends/x11/meta-backend-x11.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/backends/x11/meta-backend-x11.c b/src/backends/x11/meta-backend-x11.c index 2a3636d50..a2cf9b296 100644 --- a/src/backends/x11/meta-backend-x11.c +++ b/src/backends/x11/meta-backend-x11.c @@ -161,10 +161,8 @@ meta_backend_x11_post_init (MetaBackend *backend) priv->source = x_event_source_new (backend); - if (!XSyncQueryExtension (priv->xdisplay, &priv->xsync_event_base, &priv->xsync_error_base)) - meta_fatal ("Could not initialize XSync"); - - if (!XSyncInitialize (priv->xdisplay, &major, &minor)) + if (!XSyncQueryExtension (priv->xdisplay, &priv->xsync_event_base, &priv->xsync_error_base) || + !XSyncInitialize (priv->xdisplay, &major, &minor)) meta_fatal ("Could not initialize XSync"); META_BACKEND_CLASS (meta_backend_x11_parent_class)->post_init (backend);