Change-Id: I04768161692f5aa39f0dc3a0ed7058ca2f25b2f1
if ((comp->pointer = e_pointer_canvas_new(comp->ee, EINA_TRUE)))
{
e_pointer_hide(comp->pointer);
+
+ if (e_comp_screen->rotation)
+ {
+ const Eina_List *l;
+ Ecore_Drm_Device *dev;
+ EINA_LIST_FOREACH(ecore_drm_devices_get(), l, dev)
+ ecore_drm_device_pointer_rotation_set(dev, e_comp_screen->rotation);
+ }
}
e_main_ts("\tE_Pointer New Done");
_e_pointer_position_update(ptr);
_e_pointer_rotation_apply(ptr);
+ /* ptr->rotation shouldn't include the screen rotation value */
+ if (e_comp->e_comp_screen->rotation > 0)
+ rotation = (e_comp->e_comp_screen->rotation + rotation) % 360;
+
EINA_LIST_FOREACH(ecore_drm_devices_get(), l, dev)
ecore_drm_device_pointer_rotation_set(dev, rotation);