aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-01-12 14:38:18 +0000
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-01-12 14:38:18 +0000
commit7c35c02b5b11da312356ef451b4f251d7f3edab5 (patch)
tree974fea0ae55ec8e164d4b364572acef9b1e5d551
parentmeson - use install_mode for theme (diff)
downloadrage-7c35c02b5b11da312356ef451b4f251d7f3edab5.tar.gz
dnd - deal with efl behavior breaks and use a button not evas rect
so elm broke behavior where it would allow dnd targets to be regular evas objects not just elm. so it needs ot be elm so use an elm button. @fix elm break
-rw-r--r--src/bin/win.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/bin/win.c b/src/bin/win.c
index ea4dc79..ee20a24 100644
--- a/src/bin/win.c
+++ b/src/bin/win.c
@@ -601,7 +601,8 @@ win_add(void)
inf->lay = o;
controls_init(win, o);
- o = evas_object_rectangle_add(evas_object_evas_get(win));
+ o = elm_button_add(win);
+ elm_object_focus_move_policy_set(o, ELM_FOCUS_MOVE_POLICY_CLICK);
evas_object_size_hint_weight_set(o, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_color_set(o, 0, 0, 0, 0);
evas_object_repeat_events_set(o, EINA_TRUE);