fix e_randr eina log bitching when u dont have exisitng config!

SVN revision: 68208
This commit is contained in:
Carsten Haitzler 2012-02-21 08:17:32 +00:00
parent 687c994aa2
commit 32ac589897
2 changed files with 14 additions and 8 deletions

View File

@ -63,6 +63,8 @@ _init(void)
if (e_randr_screen_info.randr_version >= ECORE_X_RANDR_1_2) if (e_randr_screen_info.randr_version >= ECORE_X_RANDR_1_2)
{ {
if ((e_config->randr_serialized_setup) &&
(e_config->randr_serialized_setup->outputs_policies))
_12_policies_restore(); _12_policies_restore();
} }
@ -142,6 +144,8 @@ _event_listeners_add(void)
static void static void
_try_restore_configuration(void) _try_restore_configuration(void)
{ {
if (e_config->randr_serialized_setup)
{
if (e_randr_screen_info.randr_version == ECORE_X_RANDR_1_1) if (e_randr_screen_info.randr_version == ECORE_X_RANDR_1_1)
{ {
_11_try_restore_configuration(); _11_try_restore_configuration();
@ -150,6 +154,7 @@ _try_restore_configuration(void)
{ {
_12_try_restore_configuration(); _12_try_restore_configuration();
} }
}
} }
// "Free" helper functions // "Free" helper functions

View File

@ -305,6 +305,7 @@ _12_screen_info_refresh(void)
{ {
EINA_SAFETY_ON_TRUE_RETURN(e_randr_screen_info.randr_version < ECORE_X_RANDR_1_2); EINA_SAFETY_ON_TRUE_RETURN(e_randr_screen_info.randr_version < ECORE_X_RANDR_1_2);
if (e_randr_screen_info.rrvd_info.randr_info_12)
_12_screen_info_free(e_randr_screen_info.rrvd_info.randr_info_12); _12_screen_info_free(e_randr_screen_info.rrvd_info.randr_info_12);
e_randr_screen_info.rrvd_info.randr_info_12 = _screen_info_12_new(); e_randr_screen_info.rrvd_info.randr_info_12 = _screen_info_12_new();
_structs_init(); _structs_init();