elm_conformant: fix wrong variable assignment

Summary:
event.object is always NULL. it may cause unexpected behavior.
event.object should be assinged after sd->win is assinged.

Reviewers: akanad, Jaehyun_Cho

Reviewed By: Jaehyun_Cho

Subscribers: cedric, #reviewers, #committers

Tags: #efl

Differential Revision: https://phab.enlightenment.org/D7208
This commit is contained in:
Yeongjong Lee 2018-10-25 14:37:10 +09:00 committed by Jaehyun Cho
parent fae1baed8e
commit 66f5b5c9aa
1 changed files with 1 additions and 1 deletions

View File

@ -1004,8 +1004,8 @@ _elm_conformant_efl_object_constructor(Eo *obj, Elm_Conformant_Data *sd)
efl_access_object_role_set(obj, EFL_ACCESS_ROLE_FILLER);
Efl_Event event = {};
event.object = sd->win;
sd->win = elm_widget_top_get(obj);
event.object = sd->win;
_on_indicator_mode_changed(obj, &event);
_on_rotation_changed(obj, &event);