From dd6a60beea6b91cf3af7e45f632d7dd59dd703b3 Mon Sep 17 00:00:00 2001 From: Vlad Zahorodnii Date: Fri, 23 Jul 2021 09:18:57 +0300 Subject: [PATCH] qpa: Implement QPlatformWindow::requestActivateWindow() --- src/plugins/qpa/window.cpp | 5 +++++ src/plugins/qpa/window.h | 1 + 2 files changed, 6 insertions(+) diff --git a/src/plugins/qpa/window.cpp b/src/plugins/qpa/window.cpp index 8eafd75aab..a4d4d826c2 100644 --- a/src/plugins/qpa/window.cpp +++ b/src/plugins/qpa/window.cpp @@ -54,6 +54,11 @@ QSurfaceFormat Window::format() const return m_format; } +void Window::requestActivateWindow() +{ + QWindowSystemInterface::handleWindowActivated(window()); +} + void Window::setGeometry(const QRect &rect) { const QRect &oldRect = geometry(); diff --git a/src/plugins/qpa/window.h b/src/plugins/qpa/window.h index ffbf11242b..97fb38bf46 100644 --- a/src/plugins/qpa/window.h +++ b/src/plugins/qpa/window.h @@ -36,6 +36,7 @@ public: void setGeometry(const QRect &rect) override; WId winId() const override; qreal devicePixelRatio() const override; + void requestActivateWindow() override; void bindContentFBO(); const QSharedPointer &contentFBO() const;