forked from enlightenment/efl
elm_panel: do not use the unfocusable state here
Summary: the widget itself is a focus_layer which means, the tree is orphaned and cannot be accessed until the panel is visible. There is not need for us to manually track this state. fix T7908 Depends on D8831 Reviewers: marcellus, zmike, segfaultxavi, cedric Reviewed By: zmike Subscribers: #reviewers, #committers Tags: #efl Maniphest Tasks: T7908 Differential Revision: https://phab.enlightenment.org/D8832
This commit is contained in:
parent
c39346cd51
commit
4a7dc32f61
|
@ -350,7 +350,6 @@ _drawer_close(Evas_Object *obj, Evas_Coord w, Evas_Coord h, Eina_Bool anim)
|
|||
int x = 0, y = 0, cx, cy;
|
||||
Eina_Bool horizontal = EINA_FALSE;
|
||||
|
||||
elm_widget_tree_unfocusable_set(obj, EINA_TRUE);
|
||||
switch (sd->orient)
|
||||
{
|
||||
case ELM_PANEL_ORIENT_TOP:
|
||||
|
@ -462,7 +461,6 @@ _panel_toggle(void *data EINA_UNUSED,
|
|||
}
|
||||
|
||||
//if the panel is hidden, make this thing unfocusable
|
||||
elm_widget_tree_unfocusable_set(obj, sd->hidden);
|
||||
edje_object_message_signal_process(wd->resize_obj);
|
||||
}
|
||||
|
||||
|
@ -1479,7 +1477,6 @@ _elm_panel_scrollable_set(Eo *obj, Elm_Panel_Data *sd, Eina_Bool scrollable)
|
|||
evas_object_repeat_events_set(obj, EINA_FALSE);
|
||||
}
|
||||
|
||||
elm_widget_tree_unfocusable_set(obj, sd->hidden);
|
||||
edje_object_message_signal_process(sd->panel_edje);
|
||||
|
||||
evas_object_hide(sd->scr_ly);
|
||||
|
|
Loading…
Reference in New Issue