From 2819733656364006ed42ca86a4907e8277065921 Mon Sep 17 00:00:00 2001 From: Christopher Michael Date: Tue, 19 Feb 2013 10:58:51 +0000 Subject: [PATCH] Handle setting monitor to enabled/disabled based on crtc mode. Signed-off-by: Christopher Michael SVN revision: 84193 --- src/modules/conf_randr/e_smart_monitor.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/modules/conf_randr/e_smart_monitor.c b/src/modules/conf_randr/e_smart_monitor.c index 044cba3fb..ebf4cb89c 100644 --- a/src/modules/conf_randr/e_smart_monitor.c +++ b/src/modules/conf_randr/e_smart_monitor.c @@ -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);