1
0
Fork 0
mirror of https://git.freebsd.org/ports.git synced 2025-07-02 18:10:38 -04:00
ports/net-im/telegram-desktop/files/patch-Telegram_SourceFiles_window_main__window.cpp
Tobias C. Berner eaad702f42 net-im/telegram-desktop: update to 1.8.15
Changelog:

1.8.15 (07.10.19)
- Bug fixes and other minor improvements.

1.8.14 (03.10.19)
- Bug fixes and other minor improvements.

1.8.13 (03.10.19)
- Bug fixes and other minor improvements.

1.8.12 (02.10.19)
- Bug fixes and other minor improvements.

1.8.11 (01.10.19)
- Bug fixes and other minor improvements.

1.8.10 (30.09.19)
- Bug fixes and other minor improvements.

PR:		241319
Submitted by:	Henry Hu <henry.hu.sh@gmail.com>  (maintainer)
2019-10-18 15:54:48 +00:00

20 lines
770 B
C++

--- 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) {