aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorzheng_wenlong <wenlong_zheng@nexty-ele.com>2019-06-11 17:54:43 +0900
committerzheng_wenlong <wenlong_zheng@nexty-ele.com>2019-06-11 17:54:43 +0900
commita1bead0f75692fa187c595d70529dd7ec292e4f3 (patch)
tree55d494eeb85bc37bedcbd5daaa9c2a960cb64a38
parentdd9354fbfc03580fe1bde71f75c72e4d92ab9021 (diff)
change seq
-rw-r--r--src/aglextras/hmi/aglwmclient.cpp14
-rw-r--r--src/aglextras/hmi/aglwmclient.h1
2 files changed, 11 insertions, 4 deletions
diff --git a/src/aglextras/hmi/aglwmclient.cpp b/src/aglextras/hmi/aglwmclient.cpp
index 5c79832..209ae5c 100644
--- a/src/aglextras/hmi/aglwmclient.cpp
+++ b/src/aglextras/hmi/aglwmclient.cpp
@@ -53,13 +53,19 @@ void AGLWmClient::activate_window (void)
#endif // USE_AGL_HMI_LOWLEVEL_API
}
+void AGLWmClient::publishSubscription (void)
+{
+ h_ptr->publishSubscription();
+}
+
void AGLWmClient::disconnect_frame_swapped (void)
{
#ifdef USE_AGL_HMI_LOWLEVEL_API
qDebug("Disconnect!! SLOT disconnect_frame_swapped()");
disconnect(d_ptr->loading);
- activate_window();
+// activate_window();
+ publishSubscription();
#endif // USE_AGL_HMI_LOWLEVEL_API
}
@@ -154,11 +160,11 @@ AGLWmClient::AGLWmClient (const QString&, int port, QString)
}
);
- // Set the event handler for Event_TapShortcut which will activate the surface for windowmanager
+ // Set the event handler for Event_ShowWindow which will activate the surface for windowmanager
h_ptr->set_event_handler (
- LibHomeScreen::Event_TapShortcut,
+ LibHomeScreen::Event_ShowWindow,
[this](json_object* object) {
- qDebug("Surface got tapShortcut\n");
+ qDebug("Surface got showWindow\n");
activate_window();
}
);
diff --git a/src/aglextras/hmi/aglwmclient.h b/src/aglextras/hmi/aglwmclient.h
index ccfc86e..dac6f1f 100644
--- a/src/aglextras/hmi/aglwmclient.h
+++ b/src/aglextras/hmi/aglwmclient.h
@@ -40,6 +40,7 @@ private Q_SLOTS:
private:
void activate_window (void);
+ void publishSubscription (void);
friend class AGLWmClientPrivate;
QSharedPointer<AGLWmClientPrivate> d_ptr;
QSharedPointer<LibHomeScreen> h_ptr;