OSDN Git Service

remove unused QX11EmbedContainerPrivate::activeContainer member
authorIvailo Monev <xakepa10@laimg.moc>
Tue, 31 Mar 2020 10:51:51 +0000 (10:51 +0000)
committerIvailo Monev <xakepa10@laimg.moc>
Tue, 31 Mar 2020 10:51:51 +0000 (10:51 +0000)
Signed-off-by: Ivailo Monev <xakepa10@laimg.moc>
src/gui/kernel/qx11embed_x11.cpp

index f0e9a87..0d286db 100644 (file)
@@ -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();
             }