diff --git a/Telegram/SourceFiles/media/view/media_view_pip.cpp b/Telegram/SourceFiles/media/view/media_view_pip.cpp index 236ddda856..5bf9dfa654 100644 --- a/Telegram/SourceFiles/media/view/media_view_pip.cpp +++ b/Telegram/SourceFiles/media/view/media_view_pip.cpp @@ -39,8 +39,6 @@ https://github.com/telegramdesktop/tdesktop/blob/master/LEGAL #include #include #include -#include -#include namespace Media { namespace View { @@ -630,14 +628,8 @@ void PipPanel::handleWaylandResize(QSize size) { size.height() * scaled.width() / scaled.height(), size.height()) : scaled; - const auto newGeometry = QRect(widget()->geometry().topLeft(), normalized); - - QWindowSystemInterface::handleGeometryChange( - widget()->windowHandle(), - newGeometry); - setGeometry(newGeometry); - widget()->windowHandle()->handle()->setGeometry(newGeometry); + widget()->resize(normalized); _inHandleWaylandResize = false; }