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:
@@ -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());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user