Commit 427f8bc0 authored by Robert Mader's avatar Robert Mader Committed by Adam Jackson

xserver: Fix a typo

If `need_rotate` is TRUE, we should check for the right rotate.
parent 55482c1c
......@@ -539,7 +539,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 {
......
Markdown is supported
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