From 4207eb97b5e4537a5c75c86fac7e2ceea5f5f628 Mon Sep 17 00:00:00 2001 From: Ivailo Monev Date: Tue, 31 Mar 2020 10:51:51 +0000 Subject: [PATCH] remove unused QX11EmbedContainerPrivate::activeContainer member Signed-off-by: Ivailo Monev --- src/gui/kernel/qx11embed_x11.cpp | 8 -------- 1 file changed, 8 deletions(-) diff --git a/src/gui/kernel/qx11embed_x11.cpp b/src/gui/kernel/qx11embed_x11.cpp index f0e9a87b3..0d286db52 100644 --- a/src/gui/kernel/qx11embed_x11.cpp +++ b/src/gui/kernel/qx11embed_x11.cpp @@ -1014,12 +1014,8 @@ public: QSize wmMinimumSizeHint; QX11EmbedContainer::Error lastError; - - static QX11EmbedContainer *activeContainer; }; -QX11EmbedContainer *QX11EmbedContainerPrivate::activeContainer = 0; - /*! Creates a QX11EmbedContainer object with the given \a parent. */ @@ -1306,9 +1302,6 @@ bool QX11EmbedContainer::eventFilter(QObject *o, QEvent *event) // directly to the client, and it will ask us for focus with // XEMBED_REQUEST_FOCUS. if (o == this && d->client) { - if (!d->isEmbedded()) - d->activeContainer = this; - if (d->clientIsXEmbed) { if (!d->isEmbedded()) d->moveInputToProxy(); @@ -1338,7 +1331,6 @@ bool QX11EmbedContainer::eventFilter(QObject *o, QEvent *event) // focus. if (o == this && d->client) { if (!d->isEmbedded()) { - d->activeContainer = 0; if (isActiveWindow()) d->moveInputToProxy(); } -- 2.11.0