2
0
mirror of https://github.com/kotatogram/kotatogram-desktop synced 2025-09-05 09:05:14 +00:00

Updated TDesktop sources to 2.5.1+feff514

This commit is contained in:
RadRussianRus
2020-12-23 22:04:48 +03:00
498 changed files with 19467 additions and 6552 deletions

View File

@@ -13,7 +13,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL
#include "ui/platform/ui_platform_utility.h"
#include "history/history.h"
#include "window/themes/window_theme.h"
#include "window/window_title_qt.h" // kShowAfterWindowFlagChangeDelay
#include "window/window_session_controller.h"
#include "window/window_lock_widgets.h"
#include "window/window_outdated_bar.h"
@@ -394,20 +393,9 @@ void MainWindow::refreshTitleWidget() {
_titleShadow.destroy();
}
#ifdef Q_OS_LINUX
// setWindowFlag calls setParent(parentWidget(), newFlags), which
// always calls hide() explicitly, we have to show() the window back.
const auto hidden = isHidden();
const auto withShadow = hasShadow();
setWindowFlag(Qt::NoDropShadowWindowHint, withShadow);
windowHandle()->setFlag(Qt::NoDropShadowWindowHint, withShadow);
setAttribute(Qt::WA_OpaquePaintEvent, !withShadow);
if (!hidden) {
base::call_delayed(
kShowAfterWindowFlagChangeDelay,
this,
[=] { show(); });
}
#endif // Q_OS_LINUX
}
void MainWindow::updateMinimumSize() {