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:
16e2a28
)
rotation: add code to check the preferred angle's validation
79/115179/1
author
Doyoun Kang
<doyoun.kang@samsung.com>
Thu, 16 Feb 2017 14:08:35 +0000
(23:08 +0900)
committer
Doyoun Kang
<doyoun.kang@samsung.com>
Thu, 16 Feb 2017 14:08:35 +0000
(23:08 +0900)
Change-Id: Ib099806948df011d441662860846f8cdca697924
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
02bf599
..
89e4dc4
100644
(file)
--- a/
src/rotation/e_mod_rotation_wl.c
+++ b/
src/rotation/e_mod_rotation_wl.c
@@
-394,6
+394,13
@@
_e_tizen_rotation_set_preferred_angle_cb(struct wl_client *client,
if (!ec)
return;
+ if (!e_mod_pol_conf_rot_enable_get(TIZEN_ROTATION_ANGLE_TO_INT(angle)))
+ {
+ ELOGF("ROTATION", "Preferred angle(%d) is not allowed. CONF disabled",
+ ec->pixmap, ec, TIZEN_ROTATION_ANGLE_TO_INT(angle));
+ return;
+ }
+
rot->preferred_angle = angle;
if (TIZEN_ROTATION_ANGLE_TO_INT(angle) == e_client_rotation_curr_angle_get(ec))