force subview refresh on macOS 10.14

even on dark mode not all NSViews have their own layer, therefore don’t take that as a condition, because a child of such a view still might be layer-backed and need an explicit redraw.
Avoid spurious redraws for not visible windows (especiall important for not-yet fully constructed views or views during destruction)
This commit is contained in:
Stefan Csomor
2018-11-08 15:04:42 +01:00
parent bf3cfe16d4
commit e484a2db19
2 changed files with 11 additions and 4 deletions

View File

@@ -1919,6 +1919,8 @@ void wxWindowMac::MacUpdateClippedRects() const
bool wxWindowMac::MacDoRedraw( long time )
{
bool handled = false ;
if ( !IsShownOnScreen() )
return handled;
wxRegion formerUpdateRgn = m_updateRegion;
wxRegion clientUpdateRgn = formerUpdateRgn;