From 664ebe4ed08f0203a24f967ab71aace5b39d0c6d Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Fri, 1 Dec 2023 14:02:42 +0400 Subject: [PATCH] Use xdg-output for Wayland fractional scaling That's way more stable --- Telegram/SourceFiles/core/sandbox.cpp | 5 +++-- Telegram/build/docker/centos_env/Dockerfile | 2 +- 2 files changed, 4 insertions(+), 3 deletions(-) diff --git a/Telegram/SourceFiles/core/sandbox.cpp b/Telegram/SourceFiles/core/sandbox.cpp index fc4d619837..bfbd3799cd 100644 --- a/Telegram/SourceFiles/core/sandbox.cpp +++ b/Telegram/SourceFiles/core/sandbox.cpp @@ -40,8 +40,9 @@ namespace { base::options::toggle OptionForceWaylandFractionalScaling({ .id = kOptionForceWaylandFractionalScaling, - .name = "Force enable fractional-scale-v1", - .description = "Enable fractional-scale-v1 on Wayland without " + .name = "Enable xdg-output fractional scaling", + .description = "Enable xdg-output based fractional scaling on Wayland. " + "This works without fractional-scale-v1 and without " "precise High DPI scaling. " "Requires Qt with Desktop App Toolkit patches.", .scope = [] { diff --git a/Telegram/build/docker/centos_env/Dockerfile b/Telegram/build/docker/centos_env/Dockerfile index 1c5d65dbb7..76b7ffae58 100644 --- a/Telegram/build/docker/centos_env/Dockerfile +++ b/Telegram/build/docker/centos_env/Dockerfile @@ -54,7 +54,7 @@ FROM builder AS patches RUN git init patches \ && cd patches \ && git remote add origin {{ GIT }}/desktop-app/patches.git \ - && git fetch --depth=1 origin 9c97723dce353833f54d644d0403b047ee148f6e \ + && git fetch --depth=1 origin 8b95f2787ee69f3ff16a62c68b39bb8bb3d0fa68 \ && git reset --hard FETCH_HEAD \ && rm -rf .git