aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
diff options
context:
space:
mode:
authorDaniel Juyung Seo <seojuyung2@gmail.com>2014-03-09 03:39:23 +0900
committerDaniel Juyung Seo <seojuyung2@gmail.com>2014-03-09 03:39:23 +0900
commit7e3576094224f2218d1692dcb34b7444c4db83d7 (patch)
tree3c2876ed3b11bf30215e9cb39b6a911d59f5ce8b /legacy/elementary/src/lib/elm_win.c
parentlist/genlist/gengrid: Clear some internal variables when an item is deleted. (diff)
downloadefl-7e3576094224f2218d1692dcb34b7444c4db83d7.tar.gz
focus: Added focus highlight clip disable feature.
focus highlight is clipped by the clipper of focus target object. But many of the times, this clipping looks weird so I made this configurable. This fixes https://phab.enlightenment.org/T1056 but as this fix was done by adding a new feature, this patch would not be backported. @feature
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c12
1 files changed, 9 insertions, 3 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 343282db7a..d4ed38bb70 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/src/lib/elm_win.c
@@ -715,7 +715,9 @@ _elm_win_focus_highlight_anim_setup(Elm_Win_Smart_Data *sd,
elm_widget_focus_highlight_geometry_get(previous, &px, &py, &pw, &ph, EINA_FALSE);
evas_object_move(obj, tx, ty);
evas_object_resize(obj, tw, th);
- evas_object_clip_unset(obj);
+
+ if (!_elm_config->focus_highlight_clip_disable)
+ evas_object_clip_unset(obj);
m = alloca(sizeof(*m) + (sizeof(int) * 8));
m->count = 8;
@@ -737,12 +739,16 @@ _elm_win_focus_highlight_simple_setup(Elm_Win_Smart_Data *sd,
Evas_Object *clip, *target = sd->focus_highlight.cur.target;
Evas_Coord x, y, w, h;
- clip = evas_object_clip_get(target);
elm_widget_focus_highlight_geometry_get(target, &x, &y, &w, &h, EINA_TRUE);
evas_object_move(obj, x, y);
evas_object_resize(obj, w, h);
- if (clip) evas_object_clip_set(obj, clip);
+
+ if (!_elm_config->focus_highlight_clip_disable)
+ {
+ clip = evas_object_clip_get(target);
+ if (clip) evas_object_clip_set(obj, clip);
+ }
}
static void