Add checking of Display on Screen Flag for single screen outputs.

Fixes: https://launchpad.net/bugs/730160
This commit is contained in:
Tim Bentley 2011-03-15 08:34:27 +00:00
parent 7fd5a1d7fe
commit 7cf0a582ca

View File

@ -425,6 +425,13 @@ class MainDisplay(DisplayWidget):
if self.isLive:
if self.hideMode:
self.hideDisplay(self.hideMode)
else:
# Single screen active
if self.screens.monitor_number == 0:
# Only make visible if setting enabled
if QtCore.QSettings().value(u'general/display on monitor',
QtCore.QVariant(True)).toBool():
self.setVisible(True)
else:
self.setVisible(True)
preview = QtGui.QImage(self.screen[u'size'].width(),