From: Junkyeong Kim Date: Wed, 20 Jun 2018 06:02:37 +0000 (+0900) Subject: e_comp_wl: adapt screen rotation condition to find output X-Git-Tag: submit/tizen_4.0/20180621.081657^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c228bf5ca5b17d40554fd073481e5df1725a2232;p=platform%2Fupstream%2Fenlightenment.git e_comp_wl: adapt screen rotation condition to find output Change-Id: I9c8889e5062793277be9bc962efbae1ddaf375e4 Signed-off-by: Junkyeong Kim --- diff --git a/src/bin/e_comp_wl.c b/src/bin/e_comp_wl.c index a2ee39e4bd..a1e3cefe21 100644 --- a/src/bin/e_comp_wl.c +++ b/src/bin/e_comp_wl.c @@ -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; }