forked from enlightenment/enlightenment
E (RandR): Use monitor function to get proper output.
Signed-off-by: Christopher Michael <cp.michael@samsung.com> SVN revision: 77868
This commit is contained in:
parent
23fb072172
commit
f4cc7d989d
|
@ -88,6 +88,7 @@ _basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
|
||||||
Ecore_X_Randr_Mode_Info *mode;
|
Ecore_X_Randr_Mode_Info *mode;
|
||||||
E_Randr_Output_Info *output;
|
E_Randr_Output_Info *output;
|
||||||
Ecore_X_Randr_Output *outputs = NULL;
|
Ecore_X_Randr_Output *outputs = NULL;
|
||||||
|
int noutputs = 0;
|
||||||
|
|
||||||
if (!e_smart_monitor_changed_get(mon))
|
if (!e_smart_monitor_changed_get(mon))
|
||||||
continue;
|
continue;
|
||||||
|
@ -95,8 +96,11 @@ _basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
|
||||||
if (!(crtc = e_smart_monitor_crtc_get(mon)))
|
if (!(crtc = e_smart_monitor_crtc_get(mon)))
|
||||||
continue;
|
continue;
|
||||||
|
|
||||||
output = eina_list_data_get(crtc->outputs);
|
if (!(output = e_smart_monitor_output_get(mon)))
|
||||||
|
output = eina_list_data_get(crtc->outputs);
|
||||||
|
|
||||||
outputs = &output->xid;
|
outputs = &output->xid;
|
||||||
|
noutputs = eina_list_count(crtc->outputs);
|
||||||
|
|
||||||
orient = e_smart_monitor_orientation_get(mon);
|
orient = e_smart_monitor_orientation_get(mon);
|
||||||
e_smart_monitor_position_get(mon, &mx, &my);
|
e_smart_monitor_position_get(mon, &mx, &my);
|
||||||
|
@ -112,7 +116,7 @@ _basic_apply(E_Config_Dialog *cfd, E_Config_Dialog_Data *cfdata)
|
||||||
mode = e_smart_monitor_mode_get(mon);
|
mode = e_smart_monitor_mode_get(mon);
|
||||||
|
|
||||||
if (!ecore_x_randr_crtc_settings_set(root, crtc->xid,
|
if (!ecore_x_randr_crtc_settings_set(root, crtc->xid,
|
||||||
outputs, 1,
|
outputs, noutputs,
|
||||||
mx, my, mode->xid, orient))
|
mx, my, mode->xid, orient))
|
||||||
printf("Saving Settings Failed\n");
|
printf("Saving Settings Failed\n");
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue