From 42d15184d6f66e7118d9468cbaa91e64ffd37fbb Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Michel=20D=C3=A4nzer?= Date: Fri, 8 Jan 2021 18:45:33 +0100 Subject: [PATCH] wsi/x11: Make sure wsi_x11_connection::is_xwayland is always initialized MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We wouldn't initialize it if the X server didn't support the RANDR extension (though that's unlikely these days). Fixes: b5268d532a01 "wsi/x11: Detect Xwayland" Reviewed-by: Adam Jackson Reviewed-by: Bas Nieuwenhuizen Tested-by: Dieter Nützel Part-of: --- src/vulkan/wsi/wsi_common_x11.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/vulkan/wsi/wsi_common_x11.c b/src/vulkan/wsi/wsi_common_x11.c index 3b6884d37ab..124377dd6cb 100644 --- a/src/vulkan/wsi/wsi_common_x11.c +++ b/src/vulkan/wsi/wsi_common_x11.c @@ -236,9 +236,9 @@ wsi_x11_connection_create(struct wsi_device *wsi_dev, #endif if (randr_reply && randr_reply->present != 0) - { wsi_conn->is_xwayland = wsi_x11_detect_xwayland(conn); - } + else + wsi_conn->is_xwayland = false; wsi_conn->has_dri3_modifiers = has_dri3_v1_2 && has_present_v1_2; wsi_conn->is_proprietary_x11 = false;