From 0659ccc3f0636de441ba7a9ac72f1e672778e949 Mon Sep 17 00:00:00 2001 From: John Preston Date: Tue, 19 Nov 2024 12:25:27 +0400 Subject: [PATCH] Fix user-driven fullscreen change on macOS. --- Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp | 5 +++++ Telegram/lib_ui | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp index 1ede6deb9..e0f215d5c 100644 --- a/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp +++ b/Telegram/SourceFiles/ui/chat/attach/attach_bot_webview.cpp @@ -394,6 +394,11 @@ Panel::Panel(Args &&args) sendContentSafeArea(); }, _widget->lifetime()); + _widget->fullScreenValue( + ) | rpl::start_with_next([=](bool fullscreen) { + _fullscreen = fullscreen; + }, _widget->lifetime()); + _widget->closeRequests( ) | rpl::start_with_next([=] { if (_closeNeedConfirmation) { diff --git a/Telegram/lib_ui b/Telegram/lib_ui index 46c18e2c7..716986e75 160000 --- a/Telegram/lib_ui +++ b/Telegram/lib_ui @@ -1 +1 @@ -Subproject commit 46c18e2c7e730c6304e8d813be4d5abc6fb364ad +Subproject commit 716986e75b3abc3329f75346aeff9062a58bf98f