diff --git a/Telegram/SourceFiles/media/view/media_view_pip.cpp b/Telegram/SourceFiles/media/view/media_view_pip.cpp index 2c0bf14c43..b9e8170cc5 100644 --- a/Telegram/SourceFiles/media/view/media_view_pip.cpp +++ b/Telegram/SourceFiles/media/view/media_view_pip.cpp @@ -475,7 +475,7 @@ void PipPanel::setPositionDefault() { const auto parentScreen = widgetScreen(_parent); const auto myScreen = widgetScreen(widget()); if (parentScreen && myScreen && myScreen != parentScreen) { - widget()->setScreen(parentScreen); + widget()->windowHandle()->setScreen(parentScreen); } auto position = Position(); position.snapped = RectPart::Top | RectPart::Left;