Merge lp:~mzibricky/openlp/bug-906926 into lp:openlp

Proposed by matysek
Status: Superseded
Proposed branch: lp:~mzibricky/openlp/bug-906926
Merge into: lp:openlp
Diff against target: 23 lines (+6/-0)
1 file modified
openlp/core/ui/maindisplay.py (+6/-0)
To merge this branch: bzr merge lp:~mzibricky/openlp/bug-906926
Reviewer Review Type Date Requested Status
Tim Bentley Needs Fixing
Andreas Preikschat (community) Needs Information
Review via email: mp+86718@code.launchpad.net

This proposal has been superseded by a proposal from 2011-12-22.

Description of the change

This fixes bug #906926.

To post a comment you must log in.
Revision history for this message
Jonathan Corwin (j-corwin) wrote :

I think we normally use sys.platform == u'darwin' rather than platform.system()

Revision history for this message
Andreas Preikschat (googol-deactivatedaccount) wrote :

Why do need to add lines 33-41?

review: Needs Information
Revision history for this message
Tim Bentley (trb143) wrote :

Will not apply after gushies code is merge

review: Needs Fixing
lp:~mzibricky/openlp/bug-906926 updated
1853. By matysek

remove disabling opengl - done in new branch

1854. By matysek

refactoring: merge with trunk and use sys.platform

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
1=== modified file 'openlp/core/ui/maindisplay.py'
2--- openlp/core/ui/maindisplay.py 2011-12-22 13:23:04 +0000
3+++ openlp/core/ui/maindisplay.py 2011-12-22 18:36:26 +0000
4@@ -30,6 +30,7 @@
5 """
6 import logging
7 import os
8+import sys
9
10 from PyQt4 import QtCore, QtGui, QtWebKit, QtOpenGL
11 from PyQt4.phonon import Phonon
12@@ -125,6 +126,11 @@
13 QtCore.Qt.WindowStaysOnTopHint
14 if os.environ.get(u'XDG_CURRENT_DESKTOP') == u'Unity':
15 windowFlags = windowFlags | QtCore.Qt.X11BypassWindowManagerHint
16+ # FIXME: QtCore.Qt.SplashScreen is workaround to make display screen
17+ # stay always on top on Mac OS X. For details see bug 906926.
18+ # It needs more investigation to fix it properly.
19+ if sys.platform == 'darwin':
20+ windowFlags = windowFlags | QtCore.Qt.SplashScreen
21 self.setWindowFlags(windowFlags)
22 self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
23 if self.isLive: