From 755d5fbf12954e6c3985e9a5197d79b140bb4677 Mon Sep 17 00:00:00 2001 From: Ismo Puustinen Date: Fri, 7 Mar 2014 16:16:42 +0200 Subject: [PATCH] packaging: updated config for HS lifecycle management. Change-Id: I00da3f519743e9953685f317a9e2b6ffb5054ad3 --- packaging.in/murphy.lua | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/packaging.in/murphy.lua b/packaging.in/murphy.lua index ae782f8..c5e86dd 100644 --- a/packaging.in/murphy.lua +++ b/packaging.in/murphy.lua @@ -1414,22 +1414,18 @@ if sc then print('client ' .. cid .. ' (' .. msg.appid .. ') disconnected') end if msg.appid == homescreen then - if verbose > 1 then - end - connected = false homescreen = "" - wmgr:disconnect() for i,v in pairs(special_screen_sets) do - resource_set_destroy("screen", i) + resclnt:resource_set_destroy("screen", i) special_screen_sets[i] = nil end end return end - -- handle the connection + -- handle the connection to weston - if not connected and appid then + if appid then if appid == "org.tizen.ico.homescreen" then print('Setting homescreen='..appid) homescreen = appid @@ -1437,11 +1433,14 @@ if sc then send_driving_mode_to_home_screen() send_night_mode_to_home_screen() end - print('Trying to connect to wayland...') - connected = wmgr:connect() elseif appid == "org.tizen.ico.onscreen" then onscreen = appid end + + if not connected and appid == "org.tizen.ico.homescreen" then + print('Trying to connect to weston...') + connected = wmgr:connect() + end end end -- 2.7.4