Fix user-driven fullscreen change on macOS.

This commit is contained in:
John Preston
2024-11-19 12:25:27 +04:00
parent bd2ae03ab4
commit 0659ccc3f0
2 changed files with 6 additions and 1 deletions

View File

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