Skip to content

Commit

Permalink
Revert "Workaround Wayland popup menu bug."
Browse files Browse the repository at this point in the history
This reverts commit 51027a0.
  • Loading branch information
ilya-fedin authored and john-preston committed Sep 26, 2023
1 parent d2b5651 commit 618ce15
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 12 deletions.
12 changes: 1 addition & 11 deletions Telegram/SourceFiles/core/sandbox.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ For license and copyright information please follow this link:
#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>
Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit 618ce15

Please sign in to comment.