From fa01549aba442decaf7c6d5b655da2d15d1a32ed Mon Sep 17 00:00:00 2001 From: wang_zhiqiang Date: Sun, 5 May 2019 08:56:38 +0800 Subject: start launcher and lastmode after homescreen started Change-Id: I7f6c6d74d5d5c1686dc216bcff3175281b3c1494 --- src/homescreen.cpp | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'src/homescreen.cpp') diff --git a/src/homescreen.cpp b/src/homescreen.cpp index 142007f..1caa23d 100644 --- a/src/homescreen.cpp +++ b/src/homescreen.cpp @@ -183,12 +183,12 @@ int hs_instance::init(afb_api_t api) return -1; } - const struct handshake_info *h = hs_config.getHandshakeInfo(); - struct hs_handshake handshake(h->times, h->sleep); - if(handshake.start(api) < 0) { - AFB_ERROR("handshake with windowmanager failed."); - return -1; - } + // const struct handshake_info *h = hs_config.getHandshakeInfo(); + // struct hs_handshake handshake(h->times, h->sleep); + // if(handshake.start(api) < 0) { + // AFB_ERROR("handshake with windowmanager failed."); + // return -1; + // } if(app_recover == nullptr) { AFB_ERROR("app_recover is nullptr."); @@ -682,6 +682,7 @@ static int init(afb_api_t api) AFB_WARNING( "g_hs_instance isn't null."); delete g_hs_instance->client_manager; delete g_hs_instance->app_info; + delete g_hs_instance->app_recover; delete g_hs_instance; g_hs_instance = nullptr; } -- cgit 1.2.3-korg