From c9d2ef278f3b7b0bc36e9ad284821567d81f6088 Mon Sep 17 00:00:00 2001 From: Ilya Fedin Date: Sun, 13 Dec 2020 09:30:41 +0400 Subject: [PATCH] Call moveToScreen from handleVisibleChanged in OverlayWidget --- .../SourceFiles/media/view/media_view_overlay_widget.cpp | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp index f9f620ac24..7bf0af4f51 100644 --- a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp +++ b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp @@ -1322,7 +1322,7 @@ void OverlayWidget::onScreenResized(int screen) { void OverlayWidget::handleVisibleChanged(bool visible) { if (visible) { - updateGeometry(); + moveToScreen(); } } @@ -2186,9 +2186,6 @@ void OverlayWidget::displayPhoto(not_null photo, HistoryItem *item) displayDocument(nullptr, item); return; } - if (isHidden()) { - moveToScreen(); - } _touchbarDisplay.fire(TouchBarItemType::Photo); clearStreaming(); @@ -2255,9 +2252,6 @@ void OverlayWidget::displayDocument( HistoryItem *item, const Data::CloudTheme &cloud, bool continueStreaming) { - if (isHidden()) { - moveToScreen(); - } _fullScreenVideo = false; _staticContent = QPixmap(); clearStreaming(_document != doc);