e_comp_screen: do not rotate pointer in e_comp 46/137246/3
authorJengHyun Kang <jhyuni.kang@samsung.com>
Wed, 5 Jul 2017 05:28:46 +0000 (14:28 +0900)
committerGwanglim Lee <gl77.lee@samsung.com>
Thu, 6 Jul 2017 10:26:40 +0000 (10:26 +0000)
  - rotates pointer in ecore_evas_drm engine
  - e_pointer calculate only window rotation

Change-Id: I93212b70ddc1fce9ea9aaa5d4e0bda8367198086

src/bin/e_comp_screen.c
src/bin/e_pointer.c

index b089886..6ac18eb 100644 (file)
@@ -929,14 +929,6 @@ e_comp_screen_init()
    if ((comp->pointer = e_pointer_canvas_new(comp->ee, EINA_TRUE)))
      {
         e_pointer_hide(comp->pointer);
-
-        if (comp->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, comp->e_comp_screen->rotation);
-          }
      }
    e_main_ts("\tE_Pointer New Done");
 
@@ -1055,10 +1047,8 @@ e_comp_screen_rotation_setting_set(E_Comp_Screen *e_comp_screen, int rotation)
 {
    E_Output *output = NULL, *o;
    Eina_List *l;
-   const Eina_List *ll;
    int w, h;
    int screen_rotation;
-   Ecore_Drm_Device *dev;
 
    EINA_SAFETY_ON_NULL_RETURN_VAL(e_comp_screen, EINA_FALSE);
    EINA_SAFETY_ON_TRUE_RETURN_VAL(rotation % 90, EINA_FALSE);
@@ -1098,9 +1088,6 @@ e_comp_screen_rotation_setting_set(E_Comp_Screen *e_comp_screen, int rotation)
    ecore_evas_rotation_with_resize_set(e_comp->ee, e_comp_screen->rotation);
    ecore_evas_geometry_get(e_comp->ee, NULL, NULL, &w, &h);
 
-   EINA_LIST_FOREACH(ecore_drm_devices_get(), ll, dev)
-     ecore_drm_device_pointer_rotation_set(dev, e_comp_screen->rotation);
-
    INF("EE Rotated and Resized: %d, %dx%d", e_comp_screen->rotation, w, h);
 
    return EINA_TRUE;
index 46845a5..2dbec7d 100644 (file)
@@ -336,13 +336,13 @@ e_pointer_rotation_set(E_Pointer *ptr, int rotation)
    _e_pointer_position_update(ptr);
    _e_pointer_rotation_apply(ptr);
 
+   EINA_LIST_FOREACH(ecore_drm_devices_get(), l, dev)
+     ecore_drm_device_pointer_rotation_set(dev, rotation);
+
    /* 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);
-
    /* Current if e_pointer set rotation, it can't' use hwc.
       if it can use hwc, comp override will be removed. */
    if ((!ptr->o_ptr) || (ptr->o_ptr && !evas_object_visible_get(ptr->o_ptr))) return;