Use old media viewer hide workaround on macOS.

This commit is contained in:
John Preston 2021-05-31 17:39:15 +04:00
parent dfcc13c7e6
commit 464b0a0f30
1 changed files with 2 additions and 1 deletions

View File

@ -3222,7 +3222,8 @@ Ui::GL::ChosenRenderer OverlayWidget::chooseRenderer(
}
void OverlayWidget::paint(Painter &p, const QRegion &clip) {
if (_hideWorkaround) {
if (_hideWorkaround && !Platform::IsMac()) {
// This glitches on macOS, it shows old content while animating hide.
p.setCompositionMode(QPainter::CompositionMode_Source);
p.fillRect(_widget->rect(), st::transparent);
return;