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