forked from openlp/openlp
Fix bug 1395848 by setting the WindowStaysOnTop window flag when the MainDisplay is not on the primary screen.
This commit is contained in:
parent
002d68086a
commit
236dba77e8
@ -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)
|
||||||
|
Loading…
Reference in New Issue
Block a user