mirror of
https://github.com/AyuGram/AyuGramDesktop.git
synced 2025-06-05 06:33:57 +02:00
Use old media viewer hide workaround on macOS.
This commit is contained in:
parent
dfcc13c7e6
commit
464b0a0f30
1 changed files with 2 additions and 1 deletions
|
@ -3222,7 +3222,8 @@ Ui::GL::ChosenRenderer OverlayWidget::chooseRenderer(
|
||||||
}
|
}
|
||||||
|
|
||||||
void OverlayWidget::paint(Painter &p, const QRegion &clip) {
|
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.setCompositionMode(QPainter::CompositionMode_Source);
|
||||||
p.fillRect(_widget->rect(), st::transparent);
|
p.fillRect(_widget->rect(), st::transparent);
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue