Revert "xserver: Fix a typo"

This reverts commit 427f8bc009.

When receiving an output update for the mode size we need to rotate the stored
width and height values if and only if we have an xdg-output for this output
since in this case the stored values describe the output's size in logical
space, i.e. rotated.

The here reverted commit made a code change with which we would not rotate though
when an xdg-output was available since in this case the need_rotate variable was
set to False what caused in the check afterwards the first branch to execute.
This commit is contained in:
Roman Gilg 2020-08-13 16:55:03 +02:00 committed by Olivier Fourdan
parent 92f4a9ade3
commit da791ed9fd
1 changed files with 1 additions and 1 deletions

View File

@ -513,7 +513,7 @@ apply_output_change(struct xwl_output *xwl_output)
need_rotate = (xwl_output->xdg_output == NULL);
/* We need to rotate back the logical size for the mode */
if (!need_rotate || xwl_output->rotation & (RR_Rotate_0 | RR_Rotate_180)) {
if (need_rotate || xwl_output->rotation & (RR_Rotate_0 | RR_Rotate_180)) {
mode_width = xwl_output->width;
mode_height = xwl_output->height;
} else {