summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Blumenkrantz <zmike@osg.samsung.com>2016-05-10 12:35:06 -0400
committerMike Blumenkrantz <zmike@osg.samsung.com>2016-05-10 12:35:06 -0400
commitf37590209dcd77d400ea7d66be38b47e8fc1a3ff (patch)
tree5413fb898b04f75ee3e1a2b06768f0c403172bfc
parent16797009c01e743085a9fe50c8559cafbd5189d8 (diff)
downloadenlightenment-f37590209dcd77d400ea7d66be38b47e8fc1a3ff.tar.gz
disable focus effects for windows with csd
fix T3408
-rw-r--r--src/bin/e_comp_object.c9
1 files changed, 9 insertions, 0 deletions
diff --git a/src/bin/e_comp_object.c b/src/bin/e_comp_object.c
index 94fd088b14..d8e6664d3e 100644
--- a/src/bin/e_comp_object.c
+++ b/src/bin/e_comp_object.c
@@ -723,6 +723,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)
@@ -3141,6 +3145,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