Skip to content

Instantly share code, notes, and snippets.

@torarnv
Created September 18, 2019 14:47
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save torarnv/10aac35c1b92fe449c336266eb297163 to your computer and use it in GitHub Desktop.
Save torarnv/10aac35c1b92fe449c336266eb297163 to your computer and use it in GitHub Desktop.
diff --git i/src/plugins/platforms/cocoa/qcocoawindow.mm w/src/plugins/platforms/cocoa/qcocoawindow.mm
index 0c7ec7f736..44bc0d2e6c 100644
--- i/src/plugins/platforms/cocoa/qcocoawindow.mm
+++ w/src/plugins/platforms/cocoa/qcocoawindow.mm
@@ -1515,6 +1515,11 @@ bool QCocoaWindow::updatesWithDisplayLink() const
void QCocoaWindow::deliverUpdateRequest()
{
+ QWindow *w = window();
+ QWindowPrivate *wp = qt_window_private(w);
+ wp->updateRequestPending = false;
+ return;
+
// Don't send update requests for views that need display, as the update
// request doesn't carry any information about dirty rects, so the app
// may end up painting a smaller region than required. (For some reason
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment