princeamd pushed a commit to branch enlightenment-0.17.

commit f30acdc4ee18b6d041c83a74ac5309bca689f4e0
Author: Christopher Michael <[email protected]>
Date:   Tue Feb 19 10:58:51 2013 +0000

    Backport: 2819733 :: Handle setting monitor to enabled/disabled based on 
crtc mode.
    
    Signed-off-by: Christopher Michael <[email protected]>
    
    SVN revision: 84193
    Signed-off-by: Deon Thomas <[email protected]>
---
 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 044cba3..ebf4cb8 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);

-- 

------------------------------------------------------------------------------
This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev

Reply via email to