mirror of
https://github.com/brl/mutter.git
synced 2024-11-29 19:40:43 -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);
|
||||
|
||||
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);
|
||||
|
Loading…
Reference in New Issue
Block a user