extern void home_mgr_launch_home(void);
extern void home_mgr_launch_home_first(void);
-extern void home_mgr_launch_home_by_power(void);
+extern void home_mgr_launch_home_by_power(const char *val);
extern void home_mgr_init(void);
extern void home_mgr_fini(void);
-void home_mgr_launch_home_by_power(void)
+void home_mgr_launch_home_by_power(const char *val)
{
- process_mgr_must_launch(s_home_mgr.home_appid, "home_op", "powerkey", NULL, _after_launch_home);
+ process_mgr_must_launch(s_home_mgr.home_appid, "home_op", val, NULL, _after_launch_home);
}
#include <dd-display.h>
#include <feedback.h>
#include <vconf.h>
+#include <aul.h>
#include "hw_key.h"
#include "util.h"
Eina_Bool is_long_press;
int powerkey_count;
Eina_Bool is_cancel;
+ Eina_Bool is_home_focused;
} key_info = {
.key_up = NULL,
.key_down = NULL,
.is_long_press = EINA_FALSE,
.powerkey_count = 0,
.is_cancel = EINA_FALSE,
+ .is_home_focused = EINA_FALSE,
};
return ECORE_CALLBACK_CANCEL;
}
- home_mgr_launch_home_by_power();
+ home_mgr_launch_home_by_power((key_info.is_home_focused == EINA_TRUE) ? "powerkey_focused" : "powerkey_unfocused");
return ECORE_CALLBACK_CANCEL;
}
_D("_key_press_cb : %s Pressed", ev->keyname);
if (!strcmp(ev->keyname, key_name[KEY_POWER])) {
+ int status = 0;
+
_W("POWER Key is pressed");
/**
if(!key_info.power_long_press_timer) {
_E("Failed to add power_long_press_timer");
}
+
+ status = aul_app_get_status("org.tizen.w-home");
+ key_info.is_home_focused = (status == STATUS_FOCUS) ? EINA_TRUE : EINA_FALSE;
+ _D("home focus status : %d", key_info.is_home_focused);
} else if (!strcmp(ev->keyname, key_name[KEY_CANCEL])) {
_D("CANCEL key is pressed");
key_info.is_cancel = EINA_TRUE;