ecore_x_pointer_xy_get(cov->down_win, &x, &y);
_coordinate_calibrate(cov->down_win, &x, &y);
+ INF("%d -> %x", type, cov->down_win);
ecore_x_client_message32_send(cov->down_win, ECORE_X_ATOM_E_ILLUME_ACCESS_CONTROL,
ECORE_X_EVENT_MASK_WINDOW_CONFIGURE,
cov->down_win,
if (!cov->mouse_double_down) _message_read_send(cov);
else
{
- INFO(cov, "double down and longpress");
/* send message to start longpress,
keep previous target window to send mouse-up event */
cov->down_win = target_win;
+
_message_mouse_send(cov, MOUSE_BUTTON_DOWN);
}
}
if (cov->longpressed)
{
- INFO(cov, "mouse release after longpress");
+ /* mouse up after longpress */
_message_mouse_send(cov, MOUSE_BUTTON_UP);
}
}
{
if (cov->longpressed)
{
- INFO(cov, "move after longpress");
/* send message to notify move after longpress */
_message_mouse_send(cov, MOUSE_MOVE);
}
}
static void
+_move_module_enable_set(int enable)
+{
+ E_Manager *man = e_manager_current_get();
+
+ if (!man) ERR("cannot get current manager");
+
+ if (enable)
+ {
+ INF("send enaable message");
+ e_msg_send("screen-reader", "enable", 0, E_OBJECT(man), NULL, NULL, NULL);
+ }
+ else
+ {
+ INF("send disaable message");
+ e_msg_send("screen-reader", "disable", 0, E_OBJECT(man), NULL, NULL, NULL);
+ }
+}
+
+static void
_vconf_cb_accessibility_tts_change(keynode_t *node,
void *data)
{
_covers_init();
_events_shutdown();
_events_init();
+
+ /* send a message to the move module */
+ _move_module_enable_set(enable);
}
else
{
INF("[screen reader module] module disable");
_covers_shutdown();
_events_shutdown();
+
+ /* send a message to the move module */
+ _move_module_enable_set(enable);
}
elm_config_access_set(enable);
_covers_init();
_events_shutdown();
_events_init();
+
+ /* send a message to the move module */
+ _move_module_enable_set(g_enable);
}
else
{
_covers_shutdown();
_events_shutdown();
+
+ /* send a message to the move module */
+ _move_module_enable_set(g_enable);
}
elm_config_access_set(g_enable);