hermet pushed a commit to branch elementary-1.15.

http://git.enlightenment.org/core/elementary.git/commit/?id=92e654b75ae9fa034fa79e3c549b93afbd2268f5

commit 92e654b75ae9fa034fa79e3c549b93afbd2268f5
Author: Seunghun Lee <shiin....@samsung.com>
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 fe6e34c..b76fc0c 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -3770,6 +3770,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
@@ -3829,9 +3832,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);
 

-- 


Reply via email to