diff --git a/src/bin/main.c b/src/bin/main.c index 4f7131a..6eb7289 100644 --- a/src/bin/main.c +++ b/src/bin/main.c @@ -22,6 +22,10 @@ main_key_up_cb(void *data, int type EINA_UNUSED, void *ev) Ecore_Event_Key *event = ev; app_data *ad = data; + /* FIXME: key_up_cb is called twice, i don't know. seems my x system is + broken otherwise please remove this. */ + if (event->timestamp == 0) return ECORE_CALLBACK_DONE; + if (!strcmp("Control_L", event->key)) ad->ctrl_pressed = EINA_FALSE; else if (!strcmp("Shift_L", event->key)) @@ -698,6 +702,10 @@ main_key_down_cb(void *data, int type EINA_UNUSED, void *ev) Ecore_Event_Key *event = ev; app_data *ad = data; + /* FIXME: key_down_cb is called twice, i don't know. seems my x system is + broken otherwise please remove this. */ + if (event->timestamp == 0) return ECORE_CALLBACK_DONE; + //Main Menu if (!strcmp(event->key, "Escape")) {