From f37590209dcd77d400ea7d66be38b47e8fc1a3ff Mon Sep 17 00:00:00 2001 From: Mike Blumenkrantz Date: Tue, 10 May 2016 12:35:06 -0400 Subject: [PATCH] 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 94fd088b1..d8e6664d3 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