Ecore_X_Window root;
int n;
- EINA_SAFETY_ON_FALSE_RETURN(ecore_x_randr_query());
+ EINA_SAFETY_ON_FALSE_RETURN_VAL(ecore_x_randr_query(), EINA_FALSE);
- if (!(roots = ecore_x_window_root_list(&n))) return;
+ if (!(roots = ecore_x_window_root_list(&n))) return EINA_FALSE;
/* first (and only) root window */
root = roots[0];
free(roots);
Eina_Bool
_11_screen_info_refresh(void)
{
- EINA_SAFETY_ON_TRUE_RETURN(E_RANDR_11_NO);
+ EINA_SAFETY_ON_TRUE_RETURN_VAL(E_RANDR_11_NO, EINA_FALSE);
_11_screen_info_free(e_randr_screen_info.rrvd_info.randr_info_11);
- return ((e_randr_screen_info.rrvd_info.randr_info_11 = _11_screen_info_new()));
+ e_randr_screen_info.rrvd_info.randr_info_11 = _11_screen_info_new();
+
+ return (e_randr_screen_info.rrvd_info.randr_info_11 != NULL);
}
Eina_Bool
_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_VAL((e_randr_screen_info.randr_version < ECORE_X_RANDR_1_2), EINA_FALSE);
if (e_randr_screen_info.rrvd_info.randr_info_12)
_12_screen_info_free(e_randr_screen_info.rrvd_info.randr_info_12);
return EINA_FALSE;
_screen_primary_output_assign(NULL);
+
+ return EINA_TRUE;
}
/******************************************************************