wsi/x11: Make sure wsi_x11_connection::is_xwayland is always initialized

We wouldn't initialize it if the X server didn't support the RANDR
extension (though that's unlikely these days).

Fixes: b5268d532a "wsi/x11: Detect Xwayland"
Reviewed-by: Adam Jackson <ajax@redhat.com>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Tested-by: Dieter Nützel <Dieter@nuetzel-hh.de>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8393>
This commit is contained in:
Michel Dänzer 2021-01-08 18:45:33 +01:00 committed by Marge Bot
parent 6286a3b4f6
commit 42d15184d6

View file

@ -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;