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

@ -426,7 +426,14 @@ class MainDisplay(DisplayWidget):
if self.hideMode:
self.hideDisplay(self.hideMode)
else:
self.setVisible(True)
# 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(),
self.screen[u'size'].height(),
QtGui.QImage.Format_ARGB32_Premultiplied)