summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhhh.kwon <hhh.kwon@samsung.com>2013-06-28 05:33:49 (GMT)
committerhhh.kwon <hhh.kwon@samsung.com>2013-06-28 05:33:49 (GMT)
commitceeff68d8d6ede5a0c928d265d731c3404a59df7 (patch)
treeef62d6fbf33b176074e22a86a1db73e799a6d39d
parent267a6f12db27bc6137ec195ac935094f972ad53f (diff)
downloadstarter-ceeff68d8d6ede5a0c928d265d731c3404a59df7.zip
starter-ceeff68d8d6ede5a0c928d265d731c3404a59df7.tar.gz
starter-ceeff68d8d6ede5a0c928d265d731c3404a59df7.tar.bz2
Fix creating infut window method.
-rwxr-xr-xsrc/hw_key.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/hw_key.c b/src/hw_key.c
index 7e4c3fc..ee51cb2 100755
--- a/src/hw_key.c
+++ b/src/hw_key.c
@@ -262,15 +262,16 @@ void _media_key_event_cb(media_key_e key, media_key_event_e status, void *user_d
void create_key_window(void)
{
- key_info.win = ecore_x_window_input_new(0, 0, 0, 1, 1);
+ key_info.win = ecore_x_window_input_new(0, -10000, -10000, 1, 1);
if (!key_info.win) {
_D("Failed to create hidden window");
return;
}
- ecore_x_event_mask_unset(key_info.win, ECORE_X_EVENT_MASK_NONE);
+ //ecore_x_event_mask_unset(key_info.win, ECORE_X_EVENT_MASK_NONE);
ecore_x_icccm_title_set(key_info.win, "menudaemon,key,receiver");
ecore_x_netwm_name_set(key_info.win, "menudaemon,key,receiver");
ecore_x_netwm_pid_set(key_info.win, getpid());
+ ecore_x_flush();
utilx_grab_key(ecore_x_display_get(), key_info.win, KEY_HOME, SHARED_GRAB);
utilx_grab_key(ecore_x_display_get(), key_info.win, KEY_VOLUMEDOWN, SHARED_GRAB);