rotation: fix rotation for keyboard windows 68/178868/1
authorDoyoun Kang <doyoun.kang@samsung.com>
Mon, 14 May 2018 10:08:02 +0000 (19:08 +0900)
committerDoyoun Kang <doyoun.kang@samsung.com>
Mon, 14 May 2018 10:08:02 +0000 (19:08 +0900)
there was a bug that the magnifier window didn't rotate after upgrading ecore_wl2.
this fixed it.

Change-Id: I30b049d38357b352dc6def14b65790af143593f8

src/rotation/e_mod_rotation_wl.c

index fd2ed77..7c0f96e 100644 (file)
@@ -851,8 +851,7 @@ _e_tizen_rotation_send_angle_change(E_Client *ec, int angle)
      {
         ver = wl_resource_get_version(resource); // resource is type of tizen_rotation_interface
 
-        if ((ver >= 2) &&
-            ((ec->floating) || (e_policy_client_is_keyboard_magnifier(ec))))
+        if ((ver >= 2) && (ec->floating))
           {
              if (rot_diff == 180)
                {
@@ -1707,6 +1706,7 @@ e_client_rotation_set(E_Client *ec, int rotation)
         // the window which type is "E_WINDOW_TYPE_NORMAL" will be rotated itself.
         // it shouldn't be rotated by rotation state of parent window.
         if (child->netwm.type == E_WINDOW_TYPE_NORMAL) continue;
+        if (child->comp_data && !child->comp_data->mapped) continue;
 
         ELOGF("ROTATION", "Do rotation of child win %s(%p)",
               NULL, NULL, child->icccm.name, child);