forked from enlightenment/enlightenment
move ecore-x checks in comp to beginning of comp init
SVN revision: 83066
This commit is contained in:
parent
7923a0937c
commit
65aaca959f
|
@ -4256,6 +4256,25 @@ e_comp_init(void)
|
||||||
Eina_List *l;
|
Eina_List *l;
|
||||||
E_Manager *man;
|
E_Manager *man;
|
||||||
|
|
||||||
|
if (!ecore_x_composite_query())
|
||||||
|
{
|
||||||
|
e_util_dialog_internal
|
||||||
|
(_("Compositor Error"),
|
||||||
|
_("Your display server does not support XComposite,<br>"
|
||||||
|
"or Ecore-X was built without XComposite support.<br>"
|
||||||
|
"Note that for composite support you will also need<br>"
|
||||||
|
"XRender and XFixes support in X11 and Ecore."));
|
||||||
|
return EINA_FALSE;
|
||||||
|
}
|
||||||
|
if (!ecore_x_damage_query())
|
||||||
|
{
|
||||||
|
e_util_dialog_internal
|
||||||
|
(_("Compositor Error"),
|
||||||
|
_("Your display server does not support XDamage<br>"
|
||||||
|
"or Ecore was built without XDamage support."));
|
||||||
|
return EINA_FALSE;
|
||||||
|
}
|
||||||
|
|
||||||
e_sys_handlers_set(_e_comp_sys_suspend,
|
e_sys_handlers_set(_e_comp_sys_suspend,
|
||||||
_e_comp_sys_hibernate,
|
_e_comp_sys_hibernate,
|
||||||
_e_comp_sys_reboot,
|
_e_comp_sys_reboot,
|
||||||
|
@ -4307,25 +4326,6 @@ e_comp_init(void)
|
||||||
E_LIST_HANDLER_APPEND(handlers, E_EVENT_BORDER_FULLSCREEN, _e_comp_bd_fullscreen, NULL);
|
E_LIST_HANDLER_APPEND(handlers, E_EVENT_BORDER_FULLSCREEN, _e_comp_bd_fullscreen, NULL);
|
||||||
E_LIST_HANDLER_APPEND(handlers, E_EVENT_BORDER_UNFULLSCREEN, _e_comp_bd_unfullscreen, NULL);
|
E_LIST_HANDLER_APPEND(handlers, E_EVENT_BORDER_UNFULLSCREEN, _e_comp_bd_unfullscreen, NULL);
|
||||||
|
|
||||||
if (!ecore_x_composite_query())
|
|
||||||
{
|
|
||||||
e_util_dialog_internal
|
|
||||||
(_("Compositor Error"),
|
|
||||||
_("Your display server does not support XComposite,<br>"
|
|
||||||
"or Ecore-X was built without XComposite support.<br>"
|
|
||||||
"Note that for composite support you will also need<br>"
|
|
||||||
"XRender and XFixes support in X11 and Ecore."));
|
|
||||||
return EINA_FALSE;
|
|
||||||
}
|
|
||||||
if (!ecore_x_damage_query())
|
|
||||||
{
|
|
||||||
e_util_dialog_internal
|
|
||||||
(_("Compositor Error"),
|
|
||||||
_("Your display server does not support XDamage<br>"
|
|
||||||
"or Ecore was built without XDamage support."));
|
|
||||||
return EINA_FALSE;
|
|
||||||
}
|
|
||||||
|
|
||||||
E_EVENT_COMP_SOURCE_VISIBILITY = ecore_event_type_new();
|
E_EVENT_COMP_SOURCE_VISIBILITY = ecore_event_type_new();
|
||||||
E_EVENT_COMP_SOURCE_ADD = ecore_event_type_new();
|
E_EVENT_COMP_SOURCE_ADD = ecore_event_type_new();
|
||||||
E_EVENT_COMP_SOURCE_DEL = ecore_event_type_new();
|
E_EVENT_COMP_SOURCE_DEL = ecore_event_type_new();
|
||||||
|
|
Loading…
Reference in New Issue