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_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();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -141,6 +143,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)
|
||||||
{
|
{
|
||||||
|
@ -151,6 +155,7 @@ _try_restore_configuration(void)
|
||||||
_12_try_restore_configuration();
|
_12_try_restore_configuration();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// "Free" helper functions
|
// "Free" helper functions
|
||||||
static void
|
static void
|
||||||
|
|
|
@ -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();
|
||||||
|
|
Loading…
Reference in New Issue