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.michael@samsung.com>
This commit is contained in:
Chris Michael 2017-08-29 15:03:33 -04:00
parent dece94b6ca
commit 3cc70fc607
1 changed files with 4 additions and 3 deletions

View File

@ -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 */