Set explicit Display name
authorJaekyun Lee <jkyun.lee@samsung.com>
Fri, 12 Apr 2013 15:38:05 +0000 (00:38 +0900)
committerJaekyun Lee <jkyun.lee@samsung.com>
Thu, 18 Apr 2013 08:28:56 +0000 (17:28 +0900)
 - Activatation reset environment variables, so explicit name ":0" is needed

Change-Id: Iefbdce2491069e7764263c028f0bdf5f4d2cbcd5

src/manager/net_nfc_app_util.c
src/manager/net_nfc_server_context.c

index 9ba0b60..6d4535e 100644 (file)
@@ -914,7 +914,7 @@ static pid_t _net_nfc_app_util_get_focus_app_pid()
        Ecore_X_Window focus;
        pid_t pid;
 
-       ecore_x_init(NULL);
+       ecore_x_init(":0");
 
        focus = ecore_x_window_focus_get();
        if (ecore_x_netwm_pid_get(focus, &pid))
index 6ad5908..5fe5b92 100644 (file)
@@ -302,7 +302,7 @@ void net_nfc_server_set_launch_state(int socket, net_nfc_launch_popup_state_e po
 net_nfc_launch_popup_state_e net_nfc_server_get_client_popup_state(pid_t pid)
 {
        GList *item = NULL;
-       net_nfc_launch_popup_state_e state;
+       net_nfc_launch_popup_state_e state = NET_NFC_LAUNCH_APP_SELECT;
 
        pthread_mutex_lock(&g_client_context_lock);