This fixes bug #906926.

bzr-revno: 1854
Fixes: https://launchpad.net/bugs/906926
This commit is contained in:
Martin Zibricky 2011-12-22 23:36:22 +02:00 committed by Raoul Snyman
commit 5f6962f4c7
1 changed files with 5 additions and 0 deletions

View File

@ -131,6 +131,11 @@ class MainDisplay(Display):
QtCore.Qt.WindowStaysOnTopHint
if os.environ.get(u'XDG_CURRENT_DESKTOP') == u'Unity':
windowFlags = windowFlags | QtCore.Qt.X11BypassWindowManagerHint
# FIXME: QtCore.Qt.SplashScreen is workaround to make display screen
# stay always on top on Mac OS X. For details see bug 906926.
# It needs more investigation to fix it properly.
if sys.platform == 'darwin':
windowFlags = windowFlags | QtCore.Qt.SplashScreen
self.setWindowFlags(windowFlags)
self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
if self.isLive: