Commit 8b03fd94 authored by Dan Pascu's avatar Dan Pascu

Enable translucency if the compositing manager is running

parent 8d887edd
......@@ -1614,7 +1614,10 @@ class AudioSessionItem(object):
self.pending_removal = False
self.zrtp_widget = ZRTPWidget()
self.zrtp_widget.setWindowFlags(Qt.Popup | Qt.X11BypassWindowManagerHint)
self.zrtp_widget.setWindowFlags(Qt.Popup)
desktop = QApplication.desktop()
if hasattr(desktop, 'x11Info') and desktop.x11Info().isCompositingManagerRunning():
self.zrtp_widget.setAttribute(Qt.WA_TranslucentBackground, True)
self.zrtp_widget.nameChanged.connect(self._SH_ZRTPWidgetNameChanged)
self.zrtp_widget.statusChanged.connect(self._SH_ZRTPWidgetStatusChanged)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment