wsi/x11: Use get_screen_resources_current in wsi_x11_detect_xwayland
authorMichel Dänzer <mdaenzer@redhat.com>
Thu, 14 Jan 2021 12:04:57 +0000 (13:04 +0100)
committerMarge Bot <eric+marge@anholt.net>
Mon, 18 Jan 2021 10:03:32 +0000 (10:03 +0000)
commit23f2e7771053233df3d4c348ae46f838ccdda7ef
tree23629adb0ecc634bd878f3cc556b32a9aaac91c3
parentb06f3c52bfb63c18686edca2fb6f667c44533df8
wsi/x11: Use get_screen_resources_current in wsi_x11_detect_xwayland

get_screen_resources may trigger an active probe of display connections
in the X server, which may take significant time and/or result in log
file spam.

Fixes: b5268d532a01 "wsi/x11: Detect Xwayland"
Reported-by: Sylvain Bertrand <sylvain.bertrand@legeek.net>
Reviewed-by: Bas Nieuwenhuizen <bas@basnieuwenhuizen.nl>
Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/8492>
src/vulkan/wsi/wsi_common_x11.c