hermet pushed a commit to branch master. http://git.enlightenment.org/core/elementary.git/commit/?id=e05e2ab86032cf5623874cb39529d54c33d57581
commit e05e2ab86032cf5623874cb39529d54c33d57581 Author: Seunghun Lee <[email protected]> Date: Tue Aug 25 20:41:18 2015 +0900 elm_win: Initilize the variable 'preferred_rot' as a -1 before invoking _elm_win_xwin_update() in _elm_win_finalize_internal(). Summary: since the variable 'preferred_rot' is checked its validation in _elm_win_xwin_update(), so, should be initialize it before invoking. @fix Reviewers: jypark, woohyun, Hermet Reviewed By: Hermet Differential Revision: https://phab.enlightenment.org/D2987 --- src/lib/elm_win.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c index 6c50444..6305f16 100644 --- a/src/lib/elm_win.c +++ b/src/lib/elm_win.c @@ -3780,6 +3780,9 @@ _elm_win_finalize_internal(Eo *obj, Elm_Win_Data *sd, const char *name, Elm_Win_ else if (_elm_config->font_hinting == 2) evas_font_hinting_set(sd->evas, EVAS_FONT_HINTING_BYTECODE); + sd->wm_rot.wm_supported = ecore_evas_wm_rotation_supported_get(sd->ee); + sd->wm_rot.preferred_rot = -1; // it means that elm_win doesn't use preferred rotation. + #ifdef HAVE_ELEMENTARY_X _elm_win_xwin_update(sd); #endif @@ -3839,9 +3842,6 @@ _elm_win_finalize_internal(Eo *obj, Elm_Win_Data *sd, const char *name, Elm_Win_ // do nothing } - sd->wm_rot.wm_supported = ecore_evas_wm_rotation_supported_get(sd->ee); - sd->wm_rot.preferred_rot = -1; // it means that elm_win doesn't use preferred rotation. - sd->edje = edje_object_add(sd->evas); _elm_win_theme_internal(obj, sd); --
