From 3cc70fc607ee6a323678e2e5c3f12835790fa7b4 Mon Sep 17 00:00:00 2001 From: Chris Michael Date: Tue, 29 Aug 2017 15:03:33 -0400 Subject: [PATCH] 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 --- 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 */