aboutsummaryrefslogtreecommitdiffstats
path: root/legacy/elementary/src/lib/elm_win.c
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
commit10f5587cd910c021004823ac3bfd6b53e129b640 (patch)
treeff3879cd624b765ffddb04e9787a86ac6cb56780 /legacy/elementary/src/lib/elm_win.c
parenttest_scroller: Fix item count variable (diff)
downloadefl-10f5587cd910c021004823ac3bfd6b53e129b640.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
Diffstat (limited to 'legacy/elementary/src/lib/elm_win.c')
-rw-r--r--legacy/elementary/src/lib/elm_win.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/legacy/elementary/src/lib/elm_win.c b/legacy/elementary/src/lib/elm_win.c
index 337929f671..6c50444548 100644
--- a/legacy/elementary/src/lib/elm_win.c
+++ b/legacy/elementary/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