devilhorns pushed a commit to branch master.

http://git.enlightenment.org/core/enlightenment.git/commit/?id=3cc70fc607ee6a323678e2e5c3f12835790fa7b4

commit 3cc70fc607ee6a323678e2e5c3f12835790fa7b4
Author: Chris Michael <cp.mich...@samsung.com>
Date:   Tue Aug 29 15:03:33 2017 -0400

    wl-drm: Properly retrieve output geometry and propertly set output mode
    
    Previously when we were getting the output size, the resulting
    geometry was being placed in the wrong variables which resulting in
    randr screen config modes being set to zero. This patch also fixes the
    issue where when setting drm2 output mode, we were always passing in
    0x0 as the output geometry.
    
    @fix
    
    Signed-off-by: Chris Michael <cp.mich...@samsung.com>
---
 src/modules/wl_drm/e_mod_main.c | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)

diff --git a/src/modules/wl_drm/e_mod_main.c b/src/modules/wl_drm/e_mod_main.c
index e4ef7f91d..5e728962a 100644
--- a/src/modules/wl_drm/e_mod_main.c
+++ b/src/modules/wl_drm/e_mod_main.c
@@ -396,8 +396,8 @@ _drm2_randr_create(void)
                   e_drm2_output_info_get(output,
                                          &s->config.geom.x,
                                          &s->config.geom.y,
-                                         &s->config.mode.w,
-                                         &s->config.mode.h,
+                                         &s->config.geom.w,
+                                         &s->config.geom.h,
                                          &refresh);
                   s->config.mode.w = s->config.geom.w;
                   s->config.mode.h = s->config.geom.h;
@@ -580,7 +580,8 @@ _drm2_randr_apply(void)
         if (s->config.priority > top_priority)
           top_priority = s->config.priority;
 
-        ecore_drm2_output_mode_set(output, mode, 0, 0);
+        ecore_drm2_output_mode_set(output, mode, s->config.geom.x,
+                                   s->config.geom.y);
 
         /* TODO: cannot support rotations until we support planes
          * and we cannot support planes until Atomic support is in */

-- 


Reply via email to