mirror of
https://github.com/telegramdesktop/tdesktop
synced 2025-08-31 06:26:18 +00:00
Don't show PopupMenu for inactive window on macOS.
This is a fixup for 06bf67c146
.
This commit is contained in:
@@ -332,6 +332,10 @@ QString SystemCountry() {
|
||||
return QString();
|
||||
}
|
||||
|
||||
bool IsApplicationActive() {
|
||||
return static_cast<QApplication*>(QApplication::instance())->activeWindow() != nullptr;
|
||||
}
|
||||
|
||||
QString CurrentExecutablePath(int argc, char *argv[]) {
|
||||
WCHAR result[MAX_PATH + 1] = { 0 };
|
||||
auto count = GetModuleFileName(nullptr, result, MAX_PATH + 1);
|
||||
|
Reference in New Issue
Block a user