summaryrefslogtreecommitdiff
path: root/src/modules
diff options
context:
space:
mode:
authorCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-07-15 10:03:15 +0100
committerCarsten Haitzler (Rasterman) <raster@rasterman.com>2019-07-15 10:03:15 +0100
commit316c29bc56c17ffeee44fb65430be15620b3a2f6 (patch)
treec6a1709ed26498e23def3ebcca734a19e06a974d /src/modules
parent1cbd5ee024cc50d2d8ab69c3a2198509e563179f (diff)
e wl drm - restore rotation input max coords by accounting for rotation
Diffstat (limited to 'src/modules')
-rw-r--r--src/modules/wl_drm/e_mod_main.c9
1 files 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 df262d2..99f10fa 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)
580 Ecore_Drm2_Output **outconf, *out; 580 Ecore_Drm2_Output **outconf, *out;
581 int nw = 0, nh = 0; 581 int nw = 0, nh = 0;
582 int minw, minh, maxw, maxh; 582 int minw, minh, maxw, maxh;
583 int rot;
583 unsigned int *crtcs = NULL; 584 unsigned int *crtcs = NULL;
584 int num_crtcs = 0, numout = 0; 585 int num_crtcs = 0, numout = 0;
585 const Eina_List *outputs = NULL; 586 const Eina_List *outputs = NULL;
@@ -725,8 +726,12 @@ _drm2_randr_apply(void)
725 if (nh < minh) nh = minh; 726 if (nh < minh) nh = minh;
726 printf("RRR: set vsize: %ix%i, rot=%i\n", nw, nh, ecore_evas_rotation_get(e_comp->ee)); 727 printf("RRR: set vsize: %ix%i, rot=%i\n", nw, nh, ecore_evas_rotation_get(e_comp->ee));
727 ecore_drm2_device_calibrate(dev, nw, nh); 728 ecore_drm2_device_calibrate(dev, nw, nh);
728 ecore_drm2_device_pointer_max_set(dev, nw, nh); 729 rot = ecore_evas_rotation_get(e_comp->ee);
729 ecore_drm2_device_pointer_rotation_set(dev, ecore_evas_rotation_get(e_comp->ee)); 730 if ((rot == 90) || (rot == 270))
731 ecore_drm2_device_pointer_max_set(dev, nh, nw);
732 else
733 ecore_drm2_device_pointer_max_set(dev, nw, nh);
734 ecore_drm2_device_pointer_rotation_set(dev, rot);
730 735
731 if (!e_randr2_cfg->ignore_hotplug_events) 736 if (!e_randr2_cfg->ignore_hotplug_events)
732 e_randr2_screen_refresh_queue(EINA_FALSE); 737 e_randr2_screen_refresh_queue(EINA_FALSE);