forked from openlp/openlp
This fixes bug #906926.
bzr-revno: 1854 Fixes: https://launchpad.net/bugs/906926
This commit is contained in:
commit
5f6962f4c7
@ -131,6 +131,11 @@ class MainDisplay(Display):
|
|||||||
QtCore.Qt.WindowStaysOnTopHint
|
QtCore.Qt.WindowStaysOnTopHint
|
||||||
if os.environ.get(u'XDG_CURRENT_DESKTOP') == u'Unity':
|
if os.environ.get(u'XDG_CURRENT_DESKTOP') == u'Unity':
|
||||||
windowFlags = windowFlags | QtCore.Qt.X11BypassWindowManagerHint
|
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.setWindowFlags(windowFlags)
|
||||||
self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
|
self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
|
||||||
if self.isLive:
|
if self.isLive:
|
||||||
|
Loading…
Reference in New Issue
Block a user