raster pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=316c29bc56c17ffeee44fb65430be15620b3a2f6

commit 316c29bc56c17ffeee44fb65430be15620b3a2f6
Author: Carsten Haitzler (Rasterman) <ras...@rasterman.com>
Date:   Mon Jul 15 10:03:15 2019 +0100

    e wl drm - restore rotation input max coords by accounting for rotation
---
 src/modules/wl_drm/e_mod_main.c | 9 +++++++--
 1 file changed, 7 insertions(+), 2 deletions(-)

diff --git a/src/modules/wl_drm/e_mod_main.c b/src/modules/wl_drm/e_mod_main.c
index df262d2c9..99f10fa09 100644
--- a/src/modules/wl_drm/e_mod_main.c
+++ b/src/modules/wl_drm/e_mod_main.c
@@ -580,6 +580,7 @@ _drm2_randr_apply(void)
    Ecore_Drm2_Output **outconf, *out;
    int nw = 0, nh = 0;
    int minw, minh, maxw, maxh;
+   int rot;
    unsigned int *crtcs = NULL;
    int num_crtcs = 0, numout = 0;
    const Eina_List *outputs = NULL;
@@ -725,8 +726,12 @@ _drm2_randr_apply(void)
    if (nh < minh) nh = minh;
    printf("RRR: set vsize: %ix%i, rot=%i\n", nw, nh, 
ecore_evas_rotation_get(e_comp->ee));
    ecore_drm2_device_calibrate(dev, nw, nh);
-   ecore_drm2_device_pointer_max_set(dev, nw, nh);
-   ecore_drm2_device_pointer_rotation_set(dev, 
ecore_evas_rotation_get(e_comp->ee));
+   rot = ecore_evas_rotation_get(e_comp->ee);
+   if ((rot == 90) || (rot == 270))
+     ecore_drm2_device_pointer_max_set(dev, nh, nw);
+   else
+     ecore_drm2_device_pointer_max_set(dev, nw, nh);
+   ecore_drm2_device_pointer_rotation_set(dev, rot);
 
    if (!e_randr2_cfg->ignore_hotplug_events)
      e_randr2_screen_refresh_queue(EINA_FALSE);

-- 


Reply via email to