Fix media viewer window.

This commit is contained in:
John Preston 2022-03-30 11:25:05 +04:00
parent 4b328a236c
commit 528a3cdca1
1 changed files with 3 additions and 1 deletions

View File

@ -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