ivi-layout: apply opacity to weston_view correctly
authorNobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Sat, 26 Dec 2015 14:52:51 +0000 (23:52 +0900)
committerPekka Paalanen <pekka.paalanen@collabora.co.uk>
Wed, 3 Feb 2016 12:29:03 +0000 (14:29 +0200)
commit90c2789e8d83a5b090cf4b91a6770a93f08028a0
tree2ede9b3064aab8fec19d419a12ef6f3920310d00
parent0cc4e986695decb384cbbb8ce0e5cd08d2905249
ivi-layout: apply opacity to weston_view correctly

update_opacity is only called when a ivi-surface is visible. But the
previous code also checks event masks redundantly. However if the event
happens when ivi-surface is invisible, opacity is not calculated. This
patch removes this redundant check to fix potential bug.

Signed-off-by: Nobuhiko Tanibata <NOBUHIKO_TANIBATA@xddp.denso.co.jp>
Reviewed-by: Pekka Paalanen <pekka.paalanen@collabora.co.uk>
ivi-shell/ivi-layout.c