diff --git a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp index de347f5933..8977a20d45 100644 --- a/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp +++ b/Telegram/SourceFiles/media/view/media_view_overlay_widget.cpp @@ -407,7 +407,9 @@ OverlayWidget::OverlayWidget() return base::EventFilterResult::Continue; }); - if constexpr (Platform::IsMac()) { + if constexpr (Platform::IsWindows()) { + _widget->setWindowFlags(Qt::FramelessWindowHint); + } else if constexpr (Platform::IsMac()) { // Without Qt::Tool starting with Qt 5.15.1 this widget // when being opened from a fullscreen main window was // opening not as overlay over the main window, but as