Update to tdesktop 4.0.2

This version builds and runs cleanly against Qt5 without patches.
This commit is contained in:
kn 2022-06-25 21:33:46 +00:00
parent 4f6d05a809
commit 47d0253a13
3 changed files with 3 additions and 21 deletions

View File

@ -5,7 +5,7 @@ NOT_FOR_ARCHS = ${BE_ARCHS} i386
COMMENT = Telegram Desktop messenger
PORTROACH = limit:-full$$
V = 4.0.0
V = 4.0.2
DISTNAME = tdesktop-${V}-full
PKGNAME = ${DISTNAME:-full=}
CATEGORIES = net
@ -15,10 +15,6 @@ DEBUG_PACKAGES = ${BUILD_PACKAGES}
HOMEPAGE = https://desktop.telegram.org
MASTER_SITES = https://github.com/telegramdesktop/tdesktop/releases/download/v${V}/
PATCH_LIST = patch-*
# Patches only relevant while building against Qt5
PATCH_LIST += qt5-patch-*
MAINTAINER = Andrew Krasavin <noiseless-ak@yandex.ru>, \
Klemens Nanni <kn@openbsd.org>

View File

@ -1,2 +1,2 @@
SHA256 (tdesktop-4.0.0-full.tar.gz) = 9P8g4ayP/dQGbXCPg1+xFoyDv0t0ogpSyaMaAwXloMc=
SIZE (tdesktop-4.0.0-full.tar.gz) = 41056249
SHA256 (tdesktop-4.0.2-full.tar.gz) = RGWaey2z7/LlxC43LawU0bA/+uGeAFAHzlgHGWFbWbE=
SIZE (tdesktop-4.0.2-full.tar.gz) = 41059443

View File

@ -1,14 +0,0 @@
Fix build against Qt5
Index: Telegram/SourceFiles/media/view/media_view_pip.cpp
--- Telegram/SourceFiles/media/view/media_view_pip.cpp.orig
+++ Telegram/SourceFiles/media/view/media_view_pip.cpp
@@ -475,7 +475,7 @@ void PipPanel::setPositionDefault() {
const auto parentScreen = widgetScreen(_parent);
const auto myScreen = widgetScreen(widget());
if (parentScreen && myScreen && myScreen != parentScreen) {
- widget()->setScreen(parentScreen);
+ widget()->windowHandle()->setScreen(parentScreen);
}
auto position = Position();
position.snapped = RectPart::Top | RectPart::Left;