forked from enlightenment/enlightenment
fix e_randr eina log bitching when u dont have exisitng config!
SVN revision: 68208
This commit is contained in:
parent
687c994aa2
commit
32ac589897
|
@ -63,6 +63,8 @@ _init(void)
|
|||
|
||||
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();
|
||||
}
|
||||
|
||||
|
@ -142,6 +144,8 @@ _event_listeners_add(void)
|
|||
static void
|
||||
_try_restore_configuration(void)
|
||||
{
|
||||
if (e_config->randr_serialized_setup)
|
||||
{
|
||||
if (e_randr_screen_info.randr_version == ECORE_X_RANDR_1_1)
|
||||
{
|
||||
_11_try_restore_configuration();
|
||||
|
@ -150,6 +154,7 @@ _try_restore_configuration(void)
|
|||
{
|
||||
_12_try_restore_configuration();
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// "Free" helper functions
|
||||
|
|
|
@ -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);
|
||||
|
||||
if (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();
|
||||
_structs_init();
|
||||
|
|
Loading…
Reference in New Issue