def is_x11_compositing_enabled():
    """Is X11 compositing manager running.
    """
    try:
        from AnyQt.QtX11Extras import QX11Info
    except ImportError:
        return False
    if hasattr(QX11Info, 'isCompositingManagerRunning'):
        return QX11Info.isCompositingManagerRunning()
    else:
        return False
