From 466b0f6fa9b4598b0ee5deb837b5a2920b816f78 Mon Sep 17 00:00:00 2001 From: TaeHyeon Jeong Date: Wed, 17 Jul 2024 13:59:34 +0900 Subject: [PATCH] screen_rotation: Fix code to fit coding convention Change-Id: I9c2ac0b11e0d9c829a7d8b141c47fadb9b906027 --- src/bin/server/e_screen_rotation.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) 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); -- 2.7.4