We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 6f23010 commit ec6862dCopy full SHA for ec6862d
Telegram/SourceFiles/media/view/media_view_pip.cpp
@@ -362,6 +362,7 @@ void PipPanel::init() {
362
) | rpl::filter(rpl::mappers::_1) | rpl::start_with_next([=] {
363
// Workaround Qt's forced transient parent.
364
Ui::Platform::ClearTransientParent(widget());
365
+ Ui::Platform::SetWindowMargins(widget(), _padding);
366
}, rp()->lifetime());
367
368
rp()->screenValue(
@@ -878,6 +879,9 @@ void PipPanel::updateDecorations() {
878
879
_padding = padding;
880
_useTransparency = use;
881
widget()->setAttribute(Qt::WA_OpaquePaintEvent, !_useTransparency);
882
+ if (widget()->windowHandle()) {
883
884
+ }
885
setGeometry(newGeometry);
886
update();
887
}
0 commit comments