From: TaeHyeon Jeong Date: Wed, 17 Jul 2024 04:59:34 +0000 (+0900) Subject: screen_rotation: Fix code to fit coding convention X-Git-Tag: accepted/tizen/unified/dev/20240729.000912~4 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F94%2F314994%2F2;p=platform%2Fupstream%2Fenlightenment.git screen_rotation: Fix code to fit coding convention Change-Id: I9c2ac0b11e0d9c829a7d8b141c47fadb9b906027 --- diff --git a/src/bin/server/e_screen_rotation.c b/src/bin/server/e_screen_rotation.c index 42de220..6827ace 100644 --- a/src/bin/server/e_screen_rotation.c +++ b/src/bin/server/e_screen_rotation.c @@ -18,9 +18,9 @@ static E_Comp_Screen_Tzsr* _tz_surface_rotation_find(E_Client *ec) { E_Comp_Screen_Tzsr *tzsr; - Eina_List *l, *ll; + Eina_List *l; - EINA_LIST_FOREACH_SAFE(tzsr_list, l, ll, tzsr) + EINA_LIST_FOREACH(tzsr_list, l, tzsr) { if (tzsr->ec == ec) return tzsr; @@ -78,8 +78,8 @@ EINTERN Eina_Bool e_screen_rotation_init() { struct ds_tizen_screen_rotation *screen_rotation; - screen_rotation = ds_tizen_screen_rotation_create(e_comp_wl->wl.disp); + screen_rotation = ds_tizen_screen_rotation_create(e_comp_wl->wl.disp); if (!screen_rotation) { ERR("Could not add tizen_screen_rotation to wayland globals"); @@ -101,6 +101,7 @@ EINTERN void e_screen_rotation_ignore_output_transform_send(E_Client *ec, Eina_Bool ignore) { E_Comp_Screen_Tzsr *tzsr; + tzsr = _tz_surface_rotation_find(ec); EINA_SAFETY_ON_NULL_RETURN(tzsr);