summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlastair Poole <netstar@gmail.com>2020-04-12 19:06:40 +0100
committerAlastair Poole <netstar@gmail.com>2020-04-12 19:06:40 +0100
commit5a3e9864faa6b91470ea2a24234e065f7e9eed0e (patch)
treea967ef82f7b615b10ae8cdd755acab62d4a9a595
parentdb2bdaf3095c2ea415e014df458841ac22fb403c (diff)
tab: Focus Tab On Drag.
This is prettier
-rw-r--r--src/bin/mainview/edi_mainview_panel.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/bin/mainview/edi_mainview_panel.c b/src/bin/mainview/edi_mainview_panel.c
index b62d5d3..c8b16a9 100644
--- a/src/bin/mainview/edi_mainview_panel.c
+++ b/src/bin/mainview/edi_mainview_panel.c
@@ -617,6 +617,7 @@ _tab_move_begin_cb(void *data, Evas *e EINA_UNUSED, Evas_Object *obj EINA_UNUSED
evas_object_size_hint_weight_set(btn, EVAS_HINT_EXPAND, EVAS_HINT_EXPAND);
evas_object_size_hint_align_set(btn, EVAS_HINT_FILL, EVAS_HINT_FILL);
elm_object_part_text_set(btn, "elm.btn.text", elm_object_part_text_get(obj, "elm.btn.text"));
+ elm_object_focus_set(btn, EINA_TRUE);
evas_object_show(btn);
evas_object_move(tab->button_drag, ev->output.x, ev->output.y);