[gnome-flashback] output-xrandr: fix init tile info guard
- From: Alberts Muktupāvels <muktupavels src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-flashback] output-xrandr: fix init tile info guard
- Date: Tue, 29 Dec 2020 15:40:40 +0000 (UTC)
commit 83f1fe3ced4fb18d6085fb641ea4633b825ae27e
Author: Alberts Muktupāvels <alberts muktupavels gmail com>
Date: Tue Dec 29 17:37:20 2020 +0200
output-xrandr: 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.
Based on mutter commit:
https://gitlab.gnome.org/GNOME/mutter/-/commit/4ecc80fd802584245
backends/gf-output-xrandr.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/backends/gf-output-xrandr.c b/backends/gf-output-xrandr.c
index d4a7094..56213ab 100644
--- a/backends/gf-output-xrandr.c
+++ b/backends/gf-output-xrandr.c
@@ -852,7 +852,7 @@ gf_output_xrandr_new (GfGpuXrandr *gpu_xrandr,
output_info->height_mm = xrandr_output->mm_height;
}
- if (!gf_monitor_manager_xrandr_has_randr15 (monitor_manager_xrandr))
+ if (gf_monitor_manager_xrandr_has_randr15 (monitor_manager_xrandr))
output_info_init_tile_info (output_info, xdisplay, output_id);
output_info_init_modes (output_info, gpu, xrandr_output);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]