2
0
mirror of https://github.com/telegramdesktop/tdesktop synced 2025-09-01 23:15:59 +00:00

Fix a PiP crash with Qt 6.9

This commit is contained in:
Ilya Fedin
2025-04-04 23:33:40 +00:00
committed by John Preston
parent 8b92ab25c7
commit c261c3367a

View File

@@ -362,6 +362,10 @@ void PipPanel::init() {
) | rpl::filter(rpl::mappers::_1) | rpl::start_with_next([=] { ) | rpl::filter(rpl::mappers::_1) | rpl::start_with_next([=] {
// Workaround Qt's forced transient parent. // Workaround Qt's forced transient parent.
Ui::Platform::ClearTransientParent(widget()); Ui::Platform::ClearTransientParent(widget());
}, rp()->lifetime());
rp()->shownValue(
) | rpl::filter(rpl::mappers::_1) | rpl::start_with_next([=] {
Ui::Platform::SetWindowMargins(widget(), _padding); Ui::Platform::SetWindowMargins(widget(), _padding);
}, rp()->lifetime()); }, rp()->lifetime());