E rotate the window if the property "win_state" of window is changed to "ECORE_X_ILLU... tizen_2.2 2.2.1_release submit/tizen_2.2/20131107.060051
authorShawn Lee <shiin.lee@samsung.com>
Mon, 14 Oct 2013 10:24:22 +0000 (19:24 +0900)
committerShawn Lee <shiin.lee@samsung.com>
Mon, 14 Oct 2013 10:31:10 +0000 (19:31 +0900)
Change-Id: I3592d2764169e15b5fd6ae31e63a5208b013397e

src/bin/e_border.c

index ec137b0..b7388f9 100644 (file)
@@ -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)
      {