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:
3afbfc7
)
rotation: fix bug for getting active angle
40/113140/1
author
Doyoun Kang
<doyoun.kang@samsung.com>
Mon, 6 Feb 2017 08:09:29 +0000
(17:09 +0900)
committer
Doyoun Kang
<doyoun.kang@samsung.com>
Mon, 6 Feb 2017 08:09:29 +0000
(17:09 +0900)
Change-Id: I165ef48bf6c090b71f301f7f774e8de22530a441
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
4dcae94
..
b44159e
100644
(file)
--- a/
src/rotation/e_mod_rotation_wl.c
+++ b/
src/rotation/e_mod_rotation_wl.c
@@
-551,6
+551,7
@@
_e_tizen_policy_ext_active_angle_cb(struct wl_client *client, struct wl_resource
int angle;
E_Zone *zone;
E_Client *ec;
+ E_Client *focused_ec;
if (!surface)
zone = e_zone_current_get();
@@
-566,7
+567,13
@@
_e_tizen_policy_ext_active_angle_cb(struct wl_client *client, struct wl_resource
if (!zone)
angle = -1;
else
- angle = zone->rot.curr;
+ {
+ focused_ec = e_client_focused_get();
+ if (!focused_ec)
+ angle = zone->rot.curr;
+ else
+ angle = focused_ec->e.state.rot.ang.curr;
+ }
tizen_policy_ext_send_active_angle(resource, angle);
}