packaging: updated config for HS lifecycle management.
authorIsmo Puustinen <ismo.puustinen@intel.com>
Fri, 7 Mar 2014 14:16:42 +0000 (16:16 +0200)
committerKrisztian Litkey <krisztian.litkey@intel.com>
Thu, 8 Jan 2015 16:37:14 +0000 (18:37 +0200)
Change-Id: I00da3f519743e9953685f317a9e2b6ffb5054ad3

packaging.in/murphy.lua

index ae782f8..c5e86dd 100644 (file)
@@ -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