From 4908e22f3cc189d54867405d709b225d046f1419 Mon Sep 17 00:00:00 2001 From: Carsten Haitzler Date: Mon, 15 Aug 2011 09:26:15 +0000 Subject: [PATCH] check for damage, composite and 24/32bpp too. SVN revision: 62479 --- src/modules/wizard/page_150.c | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/src/modules/wizard/page_150.c b/src/modules/wizard/page_150.c index ae38fff..5658aab 100644 --- a/src/modules/wizard/page_150.c +++ b/src/modules/wizard/page_150.c @@ -61,6 +61,14 @@ wizard_page_show(E_Wizard_Page *pg) { Evas_Object *o, *of, *ob; Ecore_Evas *ee; + Ecore_X_Window_Attributes att; + + if (!ecore_x_composite_query()) return 0; + if (!ecore_x_damage_query()) return 0; + + memset((&att), 0, sizeof(Ecore_X_Window_Attributes)); + ecore_x_window_attributes_get(ecore_x_window_root_first_get(), &att); + if ((att.depth != 24) && (att.depth != 32)) return 0; ee = ecore_evas_gl_x11_new(NULL, 0, 0, 0, 320, 240); if (ee) @@ -192,7 +200,7 @@ wizard_page_hide(E_Wizard_Page *pg) E_CONFIG_DD_FREE(conf_edd); } e_config_save_queue(); - evas_object_del(pg->data); + if (pg->data) evas_object_del(pg->data); return 1; } -- 2.7.4