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
1 changed files with 2 additions and 0 deletions

View File

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