telegram-desktop: update to 2.4.3.
This commit is contained in:
parent
c120750e14
commit
3bf0661f67
@ -1,34 +0,0 @@
|
||||
--- Telegram/SourceFiles/platform/linux/specific_linux.cpp 2020-08-23 15:36:52.000000000 +0200
|
||||
+++ Telegram/SourceFiles/platform/linux/specific_linux.cpp 2020-09-02 08:38:32.950087151 +0200
|
||||
@@ -298,6 +298,20 @@
|
||||
}
|
||||
#endif // !TDESKTOP_DISABLE_GTK_INTEGRATION
|
||||
|
||||
+bool IsXCBExtensionPresent(
|
||||
+ xcb_connection_t *connection,
|
||||
+ xcb_extension_t *ext) {
|
||||
+ const auto reply = xcb_get_extension_data(
|
||||
+ connection,
|
||||
+ ext);
|
||||
+
|
||||
+ if (!reply) {
|
||||
+ return false;
|
||||
+ }
|
||||
+
|
||||
+ return reply->present;
|
||||
+}
|
||||
+
|
||||
std::optional<crl::time> XCBLastUserInputTime() {
|
||||
const auto native = QGuiApplication::platformNativeInterface();
|
||||
if (!native) {
|
||||
@@ -311,6 +325,10 @@
|
||||
return std::nullopt;
|
||||
}
|
||||
|
||||
+ if (!IsXCBExtensionPresent(connection, &xcb_screensaver_id)) {
|
||||
+ return std::nullopt;
|
||||
+ }
|
||||
+
|
||||
const auto screen = xcb_setup_roots_iterator(xcb_get_setup(connection)).data;
|
||||
if (!screen) {
|
||||
return std::nullopt;
|
@ -1,7 +1,7 @@
|
||||
# Template file for 'telegram-desktop'
|
||||
pkgname=telegram-desktop
|
||||
version=2.3.2
|
||||
revision=2
|
||||
version=2.4.3
|
||||
revision=1
|
||||
wrksrc="tdesktop-${version}-full"
|
||||
build_style=cmake
|
||||
build_helper="qemu"
|
||||
@ -10,7 +10,6 @@ configure_args="-DTDESKTOP_API_ID=209235
|
||||
-DDESKTOP_APP_USE_GLIBC_WRAPS=OFF
|
||||
-DDESKTOP_APP_DISABLE_CRASH_REPORTS=ON
|
||||
-DTDESKTOP_LAUNCHER_BASENAME=org.telegram.desktop.desktop
|
||||
-DTDESKTOP_DISABLE_REGISTER_CUSTOM_SCHEME=ON
|
||||
-DDESKTOP_APP_DISABLE_SPELLCHECK=$(vopt_if spellcheck 'false' 'true')
|
||||
-DDESKTOP_APP_DISABLE_WEBRTC_INTEGRATION=ON"
|
||||
hostmakedepends="pkg-config qt5-qmake qt5-host-tools python"
|
||||
@ -26,7 +25,7 @@ license="GPL-3.0-or-later WITH OpenSSL"
|
||||
homepage="https://desktop.telegram.org/"
|
||||
changelog="https://github.com/telegramdesktop/tdesktop/blob/v${version}/changelog.txt"
|
||||
distfiles="https://github.com/telegramdesktop/tdesktop/releases/download/v${version}/tdesktop-${version}-full.tar.gz"
|
||||
checksum=292631bcac4b30f778879ecd2cebf4c6f569ab5be01230c8e62b924b4211a259
|
||||
checksum=56de48ea5332b3e113423e286f42a7b06e3059cadfed862c3164384ebebd4895
|
||||
|
||||
build_options="spellcheck"
|
||||
build_options_default="spellcheck"
|
||||
|
Loading…
x
Reference in New Issue
Block a user