Backport: 2819733 :: Handle setting monitor to enabled/disabled based on crtc mode.

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

SVN revision: 84193
Signed-off-by: Deon Thomas <PrinceAMD.Elive@gmail.com>
This commit is contained in:
Christopher Michael 2013-02-19 10:58:51 +00:00 committed by Deon Thomas
parent 92215e3b9d
commit f30acdc4ee
1 changed files with 3 additions and 0 deletions

View File

@ -291,7 +291,10 @@ e_smart_monitor_crtc_set(Evas_Object *obj, Ecore_X_Randr_Crtc crtc, Evas_Coord c
sd->current.h = sd->crtc.h;
sd->current.mode = sd->crtc.mode;
sd->current.orient = sd->crtc.orient;
sd->current.enabled = ((sd->crtc.mode != 0) ? EINA_TRUE : EINA_FALSE);
if (!sd->current.enabled)
edje_object_signal_emit(sd->o_frame, "e,state,disabled", "e");
/* get the degree of rotation */
sd->current.rotation = _e_smart_monitor_rotation_get(sd->current.orient);