summaryrefslogtreecommitdiffstats
path: root/doc
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-03-27 09:20:34 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2009-03-27 09:34:03 (GMT)
commite83fce3f50f646fa1d3daf6dabffa47045290a44 (patch)
tree3ce4b5b9ad04a78987e38679600093040f0a76ca /doc
parent9508cfea4731f86664794455c4d3571e41e180fd (diff)
downloadQt-e83fce3f50f646fa1d3daf6dabffa47045290a44.zip
Qt-e83fce3f50f646fa1d3daf6dabffa47045290a44.tar.gz
Qt-e83fce3f50f646fa1d3daf6dabffa47045290a44.tar.bz2
Creating an instance of the QDesktopWidget breaks clipboard on X11.
On X11 when user manually creates a QDesktopWidget object it breaks notifications from the root window since we have several QDesktopWidgets that have the same native window id and the wid->qwidget mapper (QWidgetPrivate::mapper) goes crazy. So whenever we get x11 event from the root window we cannot find a qwidget that corresponds to the window id and discard these events. Reviewed-by: Brad
Diffstat (limited to 'doc')
-rw-r--r--doc/src/qdesktopwidget.qdoc9
1 files changed, 8 insertions, 1 deletions
diff --git a/doc/src/qdesktopwidget.qdoc b/doc/src/qdesktopwidget.qdoc
index 0361aae..5a27fb4 100644
--- a/doc/src/qdesktopwidget.qdoc
+++ b/doc/src/qdesktopwidget.qdoc
@@ -48,6 +48,9 @@
\ingroup environment
\mainclass
+ QApplication::desktop() function should be used to get an instance
+ of the QDesktopWidget.
+
Systems with more than one graphics card and monitor can manage the
physical screen space available either as multiple desktops, or as a
large virtual desktop, which usually has the size of the bounding
@@ -86,12 +89,14 @@
screens. The correct width and height values are obtained using
availableGeometry() or screenGeometry() for a particular screen.
- \sa QApplication, QX11Info::appRootWindow()
+ \sa QApplication, QApplication::desktop(), QX11Info::appRootWindow()
*/
/*!
\fn QDesktopWidget::QDesktopWidget()
+ \internal
+
Creates the desktop widget.
If the system supports a virtual desktop, this widget will have
@@ -104,6 +109,8 @@
/*!
\fn QDesktopWidget::~QDesktopWidget()
+ \internal
+
Destroys the desktop widget and frees any allocated resources.
*/