summaryrefslogtreecommitdiffstats
path: root/src/widgets
diff options
context:
space:
mode:
authorShawn Rutledge <shawn.rutledge@digia.com>2015-03-02 10:48:21 +0100
committerShawn Rutledge <shawn.rutledge@digia.com>2015-03-06 19:54:46 +0000
commit51ada7734ad780178ecced11e0dff454dfc2e5f2 (patch)
tree4a56f0635c100f5053fd9ddf36b0e2cb5150dcea /src/widgets
parentd7401c32c5eb514da639753d939fafabd9d3492f (diff)
xcb: do not create a dummy QScreen when there are no outputs
Whenever a QWindow is associated with a QScreen, the screen is expected to be a real working one, so that rendering continues to be possible. This partially reverts 52f5e50f11a3ba82e32dc2efc656e4021a3fa4f5 [ChangeLog][QPA][Xcb] If all QScreens (xcb outputs) are disconnected while an application is running, QGuiApplication::primaryScreen() will return null until a screen is connected again. Task-number: QTBUG-40174 Task-number: QTBUG-42985 Change-Id: Id1b29dd70eaf3f2e7fd477516ce7e2bf24e095f6 Reviewed-by: Laszlo Agocs <laszlo.agocs@theqtcompany.com> Reviewed-by: Jørgen Lind <jorgen.lind@theqtcompany.com>
Diffstat (limited to 'src/widgets')
-rw-r--r--src/widgets/kernel/qdesktopwidget.qdoc5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/widgets/kernel/qdesktopwidget.qdoc b/src/widgets/kernel/qdesktopwidget.qdoc
index 822bb47a15..6ce312dc2f 100644
--- a/src/widgets/kernel/qdesktopwidget.qdoc
+++ b/src/widgets/kernel/qdesktopwidget.qdoc
@@ -238,6 +238,11 @@
\property QDesktopWidget::screenCount
\brief the number of screens currently available on the system.
+ Note that on some platforms, screenCount will be zero if there are actually
+ no screens connected. Applications which were running at the time the
+ screenCount went to zero will stop rendering graphics until one or more
+ screens are restored.
+
\since 4.6
*/