keyboard effect: ang params to refer screen rotation 81/146981/1
authorJuyeon Lee <juyeonne.lee@samsung.com>
Thu, 31 Aug 2017 10:41:39 +0000 (19:41 +0900)
committerJuyeon Lee <juyeonne.lee@samsung.com>
Thu, 31 Aug 2017 10:41:39 +0000 (19:41 +0900)
Change-Id: I5c1f945180b4373cbd603910d8f779f3c2591db7

src/e_mod_effect.c

index cfa6912..0f8fa31 100644 (file)
@@ -313,8 +313,15 @@ _eff_group_angle_get(E_Client *ec, E_Effect_Group group)
 {
    if (group == E_EFFECT_GROUP_KEYBOARD)
      {
-        if (ec->parent)
-          return ec->parent->e.state.rot.ang.curr;
+         if (ec->parent)
+          {
+             int buffer_transform = e_comp_wl_output_buffer_transform_get(ec);
+             int rot = ec->parent->e.state.rot.ang.curr;
+
+             rot = (rot + (buffer_transform * 90)) % 360;
+
+             return rot;
+          }
      }
 
    return ec->e.state.rot.ang.curr;