Fix bug 1395848 by setting the WindowStaysOnTop window flag when the MainDisplay is not on the primary screen.

This commit is contained in:
Jonathan Springer 2015-05-21 23:15:15 -04:00
parent 002d68086a
commit 236dba77e8

View File

@ -164,6 +164,8 @@ class MainDisplay(OpenLPMixin, Display, RegistryProperties):
# and menu bar # and menu bar
if self.screens.current['primary']: if self.screens.current['primary']:
self.setWindowState(QtCore.Qt.WindowFullScreen) self.setWindowState(QtCore.Qt.WindowFullScreen)
else:
window_flags |= QtCore.Qt.WindowStaysOnTopHint
self.setWindowFlags(window_flags) self.setWindowFlags(window_flags)
self.setAttribute(QtCore.Qt.WA_DeleteOnClose) self.setAttribute(QtCore.Qt.WA_DeleteOnClose)
self.set_transparency(False) self.set_transparency(False)