Revert "Workaround Wayland popup menu bug."

This reverts commit 51027a0bc2.
This commit is contained in:
Ilya Fedin 2023-09-21 23:39:06 +04:00 committed by John Preston
parent d2b5651c3b
commit 618ce15b21
2 changed files with 2 additions and 12 deletions

View File

@ -28,7 +28,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "base/qthelp_regex.h"
#include "ui/ui_utility.h"
#include "ui/effects/animations.h"
#include "ui/platform/ui_platform_utility.h"
#include <QtCore/QLockFile>
#include <QtGui/QSessionManager>
@ -593,18 +592,9 @@ void Sandbox::registerEnterFromEventLoop() {
}
bool Sandbox::notifyOrInvoke(QObject *receiver, QEvent *e) {
const auto type = e->type();
if (type == base::InvokeQueuedEvent::Type()) {
if (e->type() == base::InvokeQueuedEvent::Type()) {
static_cast<base::InvokeQueuedEvent*>(e)->invoke();
return true;
} else if (receiver == this) {
if (type == QEvent::ApplicationDeactivate) {
if (Ui::Platform::SkipApplicationDeactivateEvent()) {
return true;
}
} else if (type == QEvent::ApplicationActivate) {
Ui::Platform::GotApplicationActivateEvent();
}
}
return QApplication::notify(receiver, e);
}

@ -1 +1 @@
Subproject commit a22254860f01256de3acdcd799c8fe6e1f8e0f0e
Subproject commit ea4c67408e1997cfce5d4bb0d9a0d55bb2d8b0f2