From 888e820acab2cc5f7f9eca4f60f108b1860a0c1b Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Thu, 11 Oct 2012 12:49:47 +0000 Subject: [PATCH] E (RandR): Remove dead debug code. Reenable crtc check to avoid potential segv. Signed-off-by: Christopher Michael SVN revision: 77877 --- src/modules/conf_randr/e_int_config_randr.c | 7 +------ 1 file changed, 1 insertion(+), 6 deletions(-) diff --git a/src/modules/conf_randr/e_int_config_randr.c b/src/modules/conf_randr/e_int_config_randr.c index 25a717afd..e1ab00332 100644 --- a/src/modules/conf_randr/e_int_config_randr.c +++ b/src/modules/conf_randr/e_int_config_randr.c @@ -180,7 +180,7 @@ _basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) if ((changes & E_SMART_MONITOR_CHANGED_REFRESH) || (changes & E_SMART_MONITOR_CHANGED_RESOLUTION)) { -// if (crtc) + if (crtc) { Ecore_X_Randr_Mode_Info *mode; Ecore_X_Randr_Output *outputs = NULL; @@ -197,11 +197,6 @@ _basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata) reset = EINA_TRUE; } } - - /* if (!ecore_x_randr_crtc_settings_set(root, crtc->xid, */ - /* outputs, noutputs, */ - /* mx, my, mode->xid, orient)) */ - /* printf("Saving Settings Failed\n"); */ } if (reset) ecore_x_randr_screen_reset(root);