Be sure to set output policy if we are cloned or not.

Signed-off-by: Christopher Michael <cp.michael@samsung.com>

SVN revision: 81254
This commit is contained in:
Christopher Michael 2012-12-18 14:15:48 +00:00 committed by Christopher Michael
parent cfd42b1c6b
commit f40b20b7a9
1 changed files with 6 additions and 6 deletions

View File

@ -278,7 +278,7 @@ e_smart_monitor_setup(Evas_Object *obj)
else
{
/* FIXME: NB: TODO: Handle case of output not having crtc */
printf("Output Has NO Crtc !!\n");
ERR("Output Has NO Crtc !!\n");
}
/* set the original rotation */
@ -420,9 +420,6 @@ e_smart_monitor_changes_apply(Evas_Object *obj)
return;
}
/* if nothing changed, we have nothing to apply */
if (sd->changes == 0) return;
/* check if it changed position and update values */
if (sd->changes & E_SMART_MONITOR_CHANGED_POSITION)
{
@ -449,13 +446,16 @@ e_smart_monitor_changes_apply(Evas_Object *obj)
/* if this monitor is cloned, use the parent geometry */
if (sd->cloned)
{
/* set output policy to cloned */
sd->output->policy = ECORE_X_RANDR_OUTPUT_POLICY_CLONE;
e_smart_monitor_current_geometry_get(sd->parent, &crtc->geometry.x,
&crtc->geometry.y,
&crtc->geometry.w,
&crtc->geometry.h);
}
/* TODO: Handle enabled and crtc change */
else
sd->output->policy = ECORE_X_RANDR_OUTPUT_POLICY_NONE;
}
void