From: Shawn Lee Date: Mon, 14 Oct 2013 10:24:22 +0000 (+0900) Subject: E rotate the window if the property "win_state" of window is changed to "ECORE_X_ILLU... X-Git-Tag: 2.2.1_release X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7c00268c683e227c8c06c5f6980665cbf209a8b4;p=framework%2Fuifw%2Fe17.git E rotate the window if the property "win_state" of window is changed to "ECORE_X_ILLUME_WINDOW_STATE_NORMAL". Change-Id: I3592d2764169e15b5fd6ae31e63a5208b013397e --- diff --git a/src/bin/e_border.c b/src/bin/e_border.c index ec137b0..b7388f9 100644 --- a/src/bin/e_border.c +++ b/src/bin/e_border.c @@ -10171,6 +10171,20 @@ _e_border_eval0(E_Border *bd) bd->client.illume.win_state.state = ecore_x_e_illume_window_state_get(bd->client.win); bd->client.illume.win_state.fetch.state = 0; +#ifdef _F_ZONE_WINDOW_ROTATION_ + /* E should rotate the window if the property "win_state" of window is + * changed to "ECORE_X_ILLUME_WINDOW_STATE_NORMAL". + * FIXME: To move below code into illume seems to better. + */ + if (e_config->wm_win_rotation) + { + if (bd->client.illume.win_state.state == ECORE_X_ILLUME_WINDOW_STATE_NORMAL) + { + bd->client.e.state.rot.type = E_BORDER_ROTATION_TYPE_NORMAL; + need_rotation_set = EINA_TRUE; + } + } +#endif } if (bd->changes.shape) {