diff options
-rw-r--r-- | src/qlibwindowmanager.cpp | 9 | ||||
-rw-r--r-- | src/qlibwindowmanager.h | 1 |
2 files changed, 10 insertions, 0 deletions
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(); diff --git a/src/qlibwindowmanager.h b/src/qlibwindowmanager.h index 0f19bb3..aad9630 100644 --- a/src/qlibwindowmanager.h +++ b/src/qlibwindowmanager.h @@ -109,6 +109,7 @@ public: public slots: void slotActivateWindow(); + void slotActivateWindow(const QString& area); // This API is deprecated, please use new API THIS_FUNCTION_IS_DEPRECATED(void slotActivateSurface()); |