projects
/
platform
/
core
/
uifw
/
e-mod-tizen-wm-policy.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b390b30
)
rotation: do not fetch if preferred angle is same as current angle.
47/115147/1
author
Gwanglim Lee
<gl77.lee@samsung.com>
Thu, 16 Feb 2017 11:48:57 +0000
(20:48 +0900)
committer
Gwanglim Lee
<gl77.lee@samsung.com>
Thu, 16 Feb 2017 11:48:57 +0000
(20:48 +0900)
Change-Id: Id05978fead72b7ca6501a98df4d7fa376b4459e5
src/rotation/e_mod_rotation_wl.c
patch
|
blob
|
history
diff --git
a/src/rotation/e_mod_rotation_wl.c
b/src/rotation/e_mod_rotation_wl.c
index
84947f0
..
02bf599
100644
(file)
--- a/
src/rotation/e_mod_rotation_wl.c
+++ b/
src/rotation/e_mod_rotation_wl.c
@@
-396,10
+396,15
@@
_e_tizen_rotation_set_preferred_angle_cb(struct wl_client *client,
rot->preferred_angle = angle;
+ if (TIZEN_ROTATION_ANGLE_TO_INT(angle) == e_client_rotation_curr_angle_get(ec))
+ {
+ EDBG(ec, "preferred angle is same as current angle. don't need to fetch.");
+ return;
+ }
+
ec->e.fetch.rot.preferred_rot = 1;
EC_CHANGED(ec);
-
/* for clients supporting landscape mode only */
if ((rot->preferred_angle) &&
!(rot->preferred_angle & TIZEN_ROTATION_ANGLE_0) &&