mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2025-12-24 11:00:11 +01:00
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:
parent
6286a3b4f6
commit
42d15184d6
1 changed files with 2 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue