From 427f8bc00981703abe3153b6da575faa69fe2748 Mon Sep 17 00:00:00 2001 From: Robert Mader Date: Wed, 16 Oct 2019 19:14:06 +0200 Subject: [PATCH] xserver: Fix a typo If `need_rotate` is TRUE, we should check for the right rotate. --- hw/xwayland/xwayland-output.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/xwayland/xwayland-output.c b/hw/xwayland/xwayland-output.c index 42b96e821..da6316930 100644 --- a/hw/xwayland/xwayland-output.c +++ b/hw/xwayland/xwayland-output.c @@ -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 {