aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-01-22 09:59:22 +0000
committerMike Blumenkrantz <michael.blumenkrantz@gmail.com>2013-01-22 09:59:22 +0000
commit65aaca959fa308e314d26126dcc542ecb2855df7 (patch)
tree5ba67e274180c35c93da581b643df7647a8a7a67
parent7923a0937c5e4f3b8f6add8a5fe7c7d217fd2860 (diff)
downloadenlightenment-65aaca959fa308e314d26126dcc542ecb2855df7.tar.gz
enlightenment-65aaca959fa308e314d26126dcc542ecb2855df7.tar.xz
enlightenment-65aaca959fa308e314d26126dcc542ecb2855df7.zip
move ecore-x checks in comp to beginning of comp init
SVN revision: 83066
-rw-r--r--src/bin/e_comp.c38
1 files changed, 19 insertions, 19 deletions
diff --git a/src/bin/e_comp.c b/src/bin/e_comp.c
index 2f7cffa8e..73774beba 100644
--- a/src/bin/e_comp.c
+++ b/src/bin/e_comp.c
@@ -4256,6 +4256,25 @@ e_comp_init(void)
Eina_List *l;
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_comp_sys_hibernate,
_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_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_ADD = ecore_event_type_new();
E_EVENT_COMP_SOURCE_DEL = ecore_event_type_new();