Commit 2dd3ce86 authored by Roman Gilg's avatar Roman Gilg
Browse files

Revert "xserver: Fix a typo"

This reverts commit 427f8bc0.

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.
parent f9e1c8a9
......@@ -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 {
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment