5.13.2: 1st patch by Alberto M (backingstore)

This commit is contained in:
kleuter
2019-11-23 10:09:47 +01:00
parent ae08c2c47c
commit 1b675cbc44
2 changed files with 6 additions and 6 deletions

View File

@ -165,6 +165,12 @@ void QNSWindowBackingStore::flush(QWindow *window, const QRegion &region, const
const QWindow *topLevelWindow = this->window();
if (window->handle()->isForeignWindow()) {
NSView *view = static_cast<QCocoaWindow *>(window->handle())->view();
NSRect nsRect = NSRectFromCGRect(region.boundingRect().toCGRect());
[view displayRect:nsRect];
return;
}
Q_ASSERT(topLevelWindow->handle() && window->handle());
Q_ASSERT(!topLevelWindow->handle()->isForeignWindow() && !window->handle()->isForeignWindow());