x11/output: Fix init tile info guard

Monitor tile info is possible to fetch when RANDR version 15 is exposed
by the X11 server. We had inverted the check meaning that only if older
versions were advertised would we attempt to init the tile information.
Fix this guard, thus fix monitor tiling on X11.

Closes: https://gitlab.gnome.org/GNOME/mutter/-/issues/1524
This commit is contained in:
Jonas Ådahl 2020-11-05 08:46:40 +01:00
parent 25bb5676df
commit 4ecc80fd80

View File

@ -848,7 +848,7 @@ meta_output_xrandr_new (MetaGpuXrandr *gpu_xrandr,
output_info->height_mm = xrandr_output->mm_height; output_info->height_mm = xrandr_output->mm_height;
} }
if (!meta_monitor_manager_xrandr_has_randr15 (monitor_manager_xrandr)) if (meta_monitor_manager_xrandr_has_randr15 (monitor_manager_xrandr))
output_info_init_tile_info (output_info, xdisplay, output_id); output_info_init_tile_info (output_info, xdisplay, output_id);
output_info_init_modes (output_info, gpu, xrandr_output); output_info_init_modes (output_info, gpu, xrandr_output);
output_info_init_crtcs (output_info, gpu, xrandr_output); output_info_init_crtcs (output_info, gpu, xrandr_output);