e_comp_wl: adapt screen rotation condition to find output 53/182053/1 accepted/tizen/4.0/unified/20180621.141509 submit/tizen_4.0/20180621.081657
authorJunkyeong Kim <jk0430.kim@samsung.com>
Wed, 20 Jun 2018 06:02:37 +0000 (15:02 +0900)
committerJunkyeong Kim <jk0430.kim@samsung.com>
Wed, 20 Jun 2018 06:02:42 +0000 (15:02 +0900)
Change-Id: I9c8889e5062793277be9bc962efbae1ddaf375e4
Signed-off-by: Junkyeong Kim <jk0430.kim@samsung.com>
src/bin/e_comp_wl.c

index a2ee39e4bda62edec047bc3ebbbe1745a8126a76..a1e3cefe2135f25c9ad0b1ab7e3a74728bd0a32b 100644 (file)
@@ -6285,9 +6285,18 @@ e_comp_wl_output_find(E_Client *ec)
 
    EINA_LIST_FOREACH(e_comp_wl->outputs, l, output)
      {
-        if (ec->x < output->x || ec->x >= (output->x + output->w) ||
-            ec->y < output->y || ec->y >= (output->y + output->h))
-          continue;
+        if (output->transform % 2)
+          {
+             if (ec->x < output->y || ec->x >= (output->y + output->h) ||
+                 ec->y < output->x || ec->y >= (output->x + output->w))
+               continue;
+          }
+        else
+          {
+             if (ec->x < output->x || ec->x >= (output->x + output->w) ||
+                 ec->y < output->y || ec->y >= (output->y + output->h))
+               continue;
+          }
 
         return output;
      }