blob: b49a61db859ecf05b345d9e76e58f3bf1406ee51 (
plain) (
blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
--- Telegram/SourceFiles/window/main_window.cpp.orig 2019-10-07 15:58:21 UTC
+++ Telegram/SourceFiles/window/main_window.cpp
@@ -573,7 +573,7 @@ bool MainWindow::minimizeToTray() {
}
void MainWindow::reActivateWindow() {
-#if defined Q_OS_LINUX32 || defined Q_OS_LINUX64
+#if defined Q_OS_LINUX32 || defined Q_OS_LINUX64 || defined Q_OS_FREEBSD
const auto reActivate = [=] {
if (const auto w = App::wnd()) {
if (auto f = QApplication::focusWidget()) {
@@ -588,7 +588,7 @@ void MainWindow::reActivateWindow() {
};
crl::on_main(this, reActivate);
App::CallDelayed(200, this, reActivate);
-#endif // Q_OS_LINUX32 || Q_OS_LINUX64
+#endif // Q_OS_LINUX32 || Q_OS_LINUX64 || Q_OS_FREEBSD
}
void MainWindow::showRightColumn(object_ptr<TWidget> widget) {
|