summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSeunghun Lee <shiin.lee@samsung.com>2015-08-20 14:11:55 +0900
committerChunEon Park <hermet@hermet.pe.kr>2015-08-20 14:11:55 +0900
commit0b6d1794d48ceecd17d5fe12010eb0246ade6e74 (patch)
tree3d6b5806bf0562a1ca58c199427b001c82fbb0fe
parentb645e8c3bf66d43882e9d2952991d61cefa00e53 (diff)
downloadelementary-0b6d1794d48ceecd17d5fe12010eb0246ade6e74.tar.gz
elm_win: set wm rotation hints _elm_win_xwin_update().
Summary: if app sets available rotations before invoking elm_win_alpha_set(), wm rotation doesn't work. this patch fixes it. Test Plan: N/A Reviewers: jypark Reviewed By: jypark Differential Revision: https://phab.enlightenment.org/D2946
-rw-r--r--src/lib/elm_win.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/lib/elm_win.c b/src/lib/elm_win.c
index 337929f67..6c5044454 100644
--- a/src/lib/elm_win.c
+++ b/src/lib/elm_win.c
@@ -2278,6 +2278,14 @@ _elm_win_xwin_update(Elm_Win_Data *sd)
else if (sd->indmode == ELM_WIN_INDICATOR_HIDE)
ecore_x_e_illume_indicator_state_set
(sd->x.xwin, ECORE_X_ILLUME_INDICATOR_STATE_OFF);
+
+ if ((sd->wm_rot.count) && (sd->wm_rot.rots))
+ ecore_evas_wm_rotation_available_rotations_set(sd->ee,
+ sd->wm_rot.rots,
+ sd->wm_rot.count);
+ if (sd->wm_rot.preferred_rot != -1)
+ ecore_evas_wm_rotation_preferred_rotation_set(sd->ee,
+ sd->wm_rot.preferred_rot);
}
#endif