test for xrandr presence on this display before bringing up the Display Configuration dialog

SVN revision: 33261
This commit is contained in:
Eric Schuele 2007-12-27 06:36:49 +00:00
parent 680afdc9e8
commit 768cb78f75
1 changed files with 7 additions and 0 deletions

View File

@ -231,6 +231,13 @@ e_int_config_display(E_Container *con, const char *params __UNUSED__)
E_Config_Dialog *cfd;
E_Config_Dialog_View *v;
if (!ecore_x_randr_present())
{
ecore_timer_add(0.5, _deferred_noxrandr_error, NULL);
fprintf(stderr, "XRandR not present on this display. \n");
return NULL;
}
if (e_config_dialog_find("E", "_config_display_dialog")) return NULL;
v = E_NEW(E_Config_Dialog_View, 1);
v->create_cfdata = _create_data;