def is_x11_compositing_enabled():
 try:
  from AnyQt.QtX11Extras import QX11Info
 except ImportError:
  return False
 if hasattr(QX11Info, 'isCompositingManagerRunning'):
  return QX11Info.isCompositingManagerRunning()
 else:
  return False

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