From fb789685b64870867c3c97e04e6a0a0a090342b4 Mon Sep 17 00:00:00 2001 From: Kazumasa Mitsunari Date: Mon, 22 Oct 2018 17:10:07 +0900 Subject: Add overload function to request first area Change-Id: I73badee1425b4da1fc4b0f8df7ed531d0c487d47 Signed-off-by: Kazumasa Mitsunari --- src/qlibwindowmanager.cpp | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/qlibwindowmanager.cpp') diff --git a/src/qlibwindowmanager.cpp b/src/qlibwindowmanager.cpp index be82cfd..4d32aab 100644 --- a/src/qlibwindowmanager.cpp +++ b/src/qlibwindowmanager.cpp @@ -142,6 +142,15 @@ void QLibWindowmanager::slotActivateWindow(){ } } +void QLibWindowmanager::slotActivateWindow(const QString& area){ + // This is needed for first rendering when the app is launched + if(!isActive){ + qDebug("Let's show %s", qPrintable(this->graphic_role.c_str())); + isActive = true; + this->activateWindow(this->graphic_role.c_str(), area); + } +} + // This API is deprecated, please use new API void QLibWindowmanager::slotActivateSurface(){ this->slotActivateWindow(); -- cgit 1.2.3-korg