discomfitor pushed a commit to branch enlightenment-0.20.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=eee1ee8fb05f40716a0d246b6506ce50385c266e

commit eee1ee8fb05f40716a0d246b6506ce50385c266e
Author: Mike Blumenkrantz <zm...@osg.samsung.com>
Date:   Tue May 10 12:35:06 2016 -0400

    disable focus effects for windows with csd
    
    fix T3408
---
 src/bin/e_comp_object.c | 9 +++++++++
 1 file changed, 9 insertions(+)

diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c
index 3a7bf34..3b533a6 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -688,6 +688,10 @@ _e_comp_object_shadow_setup(E_Comp_Object *cw)
      }
    else
      e_comp_object_signal_emit(cw->smart_obj, "e,state,hidden", "e");
+   if (e_comp_object_frame_allowed(cw->smart_obj))
+     e_comp_object_signal_emit(cw->smart_obj, "e,state,focus,enabled", "e");
+   else
+     e_comp_object_signal_emit(cw->smart_obj, "e,state,focus,disabled", "e");
 
    /* breaks animation counter */
    //if (cw->ec->iconic)
@@ -3056,6 +3060,11 @@ e_comp_object_frame_geometry_set(Evas_Object *obj, int 
l, int r, int t, int b)
    cw->client_inset.r = r;
    cw->client_inset.t = t;
    cw->client_inset.b = b;
+   if (!cw->shobj) return;
+   if (cw->client_inset.calc)
+     e_comp_object_signal_emit(obj, "e,state,focus,disabled", "e");
+   else
+     e_comp_object_signal_emit(obj, "e,state,focus,enabled", "e");
 }
 
 E_API Eina_Bool

-- 


Reply via email to