mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-04-16 22:27:20 +02:00
Revert "Workaround Wayland popup menu bug."
This reverts commit 51027a0bc2
.
This commit is contained in:
parent
d2b5651c3b
commit
618ce15b21
2 changed files with 2 additions and 12 deletions
|
@ -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
|
Loading…
Add table
Reference in a new issue