From 236dba77e8757baec5d3886691aaf58d0811029a Mon Sep 17 00:00:00 2001 From: Jonathan Springer Date: Thu, 21 May 2015 23:15:15 -0400 Subject: [PATCH] Fix bug 1395848 by setting the WindowStaysOnTop window flag when the MainDisplay is not on the primary screen. --- openlp/core/ui/maindisplay.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/openlp/core/ui/maindisplay.py b/openlp/core/ui/maindisplay.py index 68d5d6d3d..9c0593d5d 100644 --- a/openlp/core/ui/maindisplay.py +++ b/openlp/core/ui/maindisplay.py @@ -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)