From a882ffc603bdc663e3d32905a1817a45167b84b1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Arne=20Vestb=C3=B8?= Date: Tue, 31 Jul 2018 17:32:25 +0200 Subject: Handle screen changes for non-top-level windows MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The platform may emit screen changes for child windows before top-level windows, so we need to update the top level screen as soon as possible. Change-Id: I090c620725c9c3171f5b038708d78ddfeec8512d Reviewed-by: Lars Knoll Reviewed-by: Tor Arne Vestbø --- src/gui/kernel/qwindow_p.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/gui/kernel/qwindow_p.h') diff --git a/src/gui/kernel/qwindow_p.h b/src/gui/kernel/qwindow_p.h index 745ff2e46f..bf5e645114 100644 --- a/src/gui/kernel/qwindow_p.h +++ b/src/gui/kernel/qwindow_p.h @@ -125,7 +125,7 @@ public: QPoint globalPosition() const; - QWindow *topLevelWindow() const; + QWindow *topLevelWindow(QWindow::AncestorMode mode = QWindow::IncludeTransients) const; #if QT_CONFIG(opengl) virtual QOpenGLContext *shareContext() const; -- cgit v1.2.3