forked from enlightenment/efl
barebones initial support for access commands. XXX's
SVN revision: 71324
This commit is contained in:
parent
034c6928ed
commit
b29d458517
|
@ -1559,7 +1559,7 @@ _elm_win_client_message(void *data,
|
||||||
if (e->format != 32) return ECORE_CALLBACK_PASS_ON;
|
if (e->format != 32) return ECORE_CALLBACK_PASS_ON;
|
||||||
if (e->message_type == ECORE_X_ATOM_E_COMP_FLUSH)
|
if (e->message_type == ECORE_X_ATOM_E_COMP_FLUSH)
|
||||||
{
|
{
|
||||||
if ((unsigned)e->data.l[0] == sd->xwin)
|
if ((unsigned int)e->data.l[0] == sd->xwin)
|
||||||
{
|
{
|
||||||
Evas *evas = evas_object_evas_get(ELM_WIDGET_DATA(sd)->obj);
|
Evas *evas = evas_object_evas_get(ELM_WIDGET_DATA(sd)->obj);
|
||||||
if (evas)
|
if (evas)
|
||||||
|
@ -1573,7 +1573,7 @@ _elm_win_client_message(void *data,
|
||||||
}
|
}
|
||||||
else if (e->message_type == ECORE_X_ATOM_E_COMP_DUMP)
|
else if (e->message_type == ECORE_X_ATOM_E_COMP_DUMP)
|
||||||
{
|
{
|
||||||
if ((unsigned)e->data.l[0] == sd->xwin)
|
if ((unsigned int)e->data.l[0] == sd->xwin)
|
||||||
{
|
{
|
||||||
Evas *evas = evas_object_evas_get(ELM_WIDGET_DATA(sd)->obj);
|
Evas *evas = evas_object_evas_get(ELM_WIDGET_DATA(sd)->obj);
|
||||||
if (evas)
|
if (evas)
|
||||||
|
@ -1586,6 +1586,42 @@ _elm_win_client_message(void *data,
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
else if (e->message_type == ECORE_X_ATOM_E_ILLUME_ACCESS_CONTROL)
|
||||||
|
{
|
||||||
|
if ((unsigned int)e->data.l[0] == sd->xwin)
|
||||||
|
{
|
||||||
|
if ((unsigned int)e->data.l[1] ==
|
||||||
|
ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_NEXT)
|
||||||
|
{
|
||||||
|
// XXX: call right access func
|
||||||
|
}
|
||||||
|
else if ((unsigned int)e->data.l[1] ==
|
||||||
|
ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_PREV)
|
||||||
|
{
|
||||||
|
// XXX: call right access func
|
||||||
|
}
|
||||||
|
else if ((unsigned int)e->data.l[1] ==
|
||||||
|
ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_ACTIVATE)
|
||||||
|
{
|
||||||
|
// XXX: call right access func
|
||||||
|
}
|
||||||
|
else if ((unsigned int)e->data.l[1] ==
|
||||||
|
ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_READ)
|
||||||
|
{
|
||||||
|
// XXX: call right access func
|
||||||
|
}
|
||||||
|
else if ((unsigned int)e->data.l[1] ==
|
||||||
|
ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_READ_NEXT)
|
||||||
|
{
|
||||||
|
// XXX: call right access func
|
||||||
|
}
|
||||||
|
else if ((unsigned int)e->data.l[1] ==
|
||||||
|
ECORE_X_ATOM_E_ILLUME_ACCESS_ACTION_READ_PREV)
|
||||||
|
{
|
||||||
|
// XXX: call right access func
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
return ECORE_CALLBACK_PASS_ON;
|
return ECORE_CALLBACK_PASS_ON;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -2077,16 +2113,16 @@ elm_win_add(Evas_Object *parent,
|
||||||
#ifdef HAVE_ELEMENTARY_X
|
#ifdef HAVE_ELEMENTARY_X
|
||||||
else if (ENGINE_COMPARE(ELM_SOFTWARE_X11))
|
else if (ENGINE_COMPARE(ELM_SOFTWARE_X11))
|
||||||
sd->client_message_handler = ecore_event_handler_add
|
sd->client_message_handler = ecore_event_handler_add
|
||||||
(ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
|
(ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
|
||||||
else if (ENGINE_COMPARE(ELM_SOFTWARE_16_X11))
|
else if (ENGINE_COMPARE(ELM_SOFTWARE_16_X11))
|
||||||
sd->client_message_handler = ecore_event_handler_add
|
sd->client_message_handler = ecore_event_handler_add
|
||||||
(ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
|
(ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
|
||||||
else if (ENGINE_COMPARE(ELM_SOFTWARE_8_X11))
|
else if (ENGINE_COMPARE(ELM_SOFTWARE_8_X11))
|
||||||
sd->client_message_handler = ecore_event_handler_add
|
sd->client_message_handler = ecore_event_handler_add
|
||||||
(ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
|
(ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
|
||||||
else if (ENGINE_COMPARE(ELM_OPENGL_X11))
|
else if (ENGINE_COMPARE(ELM_OPENGL_X11))
|
||||||
sd->client_message_handler = ecore_event_handler_add
|
sd->client_message_handler = ecore_event_handler_add
|
||||||
(ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
|
(ECORE_X_EVENT_CLIENT_MESSAGE, _elm_win_client_message, sd);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
else if (!strncmp(_elm_preferred_engine, "shot:", 5))
|
else if (!strncmp(_elm_preferred_engine, "shot:", 5))
|
||||||
|
|
Loading…
Reference in New Issue