summaryrefslogtreecommitdiffstats
path: root/src/gui/kernel/qx11embed_x11.cpp
diff options
context:
space:
mode:
authorDenis Dzyubenko <denis.dzyubenko@nokia.com>2010-07-01 10:00:05 (GMT)
committerDenis Dzyubenko <denis.dzyubenko@nokia.com>2010-07-01 12:33:00 (GMT)
commit9a1b0695277a3864b42d082095962f8742cdcf04 (patch)
treecfff590a33bce2ec7f7a6e171677477ea88ba7be /src/gui/kernel/qx11embed_x11.cpp
parent2471a5f348084ded48fd738683dde0137528c30d (diff)
downloadQt-9a1b0695277a3864b42d082095962f8742cdcf04.zip
Qt-9a1b0695277a3864b42d082095962f8742cdcf04.tar.gz
Qt-9a1b0695277a3864b42d082095962f8742cdcf04.tar.bz2
Fixed QX11EmbedContainer.
Enforce the creation of the native window id for the focusproxy widget inside the container to make sure we won't get a CreateNotify event to try to embed the focusproxy itself. Task-number: QTBUG-10809 Reviewed-by: Bradley T. Hughes
Diffstat (limited to 'src/gui/kernel/qx11embed_x11.cpp')
-rw-r--r--src/gui/kernel/qx11embed_x11.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/gui/kernel/qx11embed_x11.cpp b/src/gui/kernel/qx11embed_x11.cpp
index b527e72..9f1b1f8 100644
--- a/src/gui/kernel/qx11embed_x11.cpp
+++ b/src/gui/kernel/qx11embed_x11.cpp
@@ -1070,6 +1070,7 @@ QX11EmbedContainer::QX11EmbedContainer(QWidget *parent)
d->focusProxy = new QWidget(this);
d->focusProxy->setAttribute(Qt::WA_NativeWindow);
d->focusProxy->setAttribute(Qt::WA_DontCreateNativeAncestors);
+ d->focusProxy->createWinId();
d->focusProxy->setGeometry(-1, -1, 1, 1);
// We need events from the window (activation status) and