Blame SOURCES/0014-xwayland-Probe-outputs-on-preinit.patch

d64d53
From 21d9ed2b2ad45c7c363194a4c4fe2306bb26b130 Mon Sep 17 00:00:00 2001
70130e
From: =?UTF-8?q?Jonas=20=C3=85dahl?= <jadahl@gmail.com>
70130e
Date: Sun, 1 Sep 2013 23:14:43 +0200
d64d53
Subject: [PATCH 14/38] xwayland: Probe outputs on preinit
70130e
MIME-Version: 1.0
70130e
Content-Type: text/plain; charset=UTF-8
70130e
Content-Transfer-Encoding: 8bit
70130e
70130e
When running xwayland, calls to xf86SetDesiredModes() would fail due to
70130e
the probed modes list not being populated. This was previously done
70130e
indirectly by calling xf86InitialConfiguration() and now needs to be
70130e
done explicitly instead.
70130e
70130e
Signed-off-by: Jonas Ã…dahl <jadahl@gmail.com>
70130e
---
70130e
 hw/xfree86/xwayland/xwayland-output.c | 2 ++
70130e
 1 file changed, 2 insertions(+)
70130e
70130e
diff --git a/hw/xfree86/xwayland/xwayland-output.c b/hw/xfree86/xwayland/xwayland-output.c
70130e
index 66c7d48..691b5f0 100644
70130e
--- a/hw/xfree86/xwayland/xwayland-output.c
70130e
+++ b/hw/xfree86/xwayland/xwayland-output.c
70130e
@@ -431,6 +431,8 @@ xwayland_screen_preinit_output(struct xwl_screen *xwl_screen, ScrnInfoPtr scrnin
70130e
             FatalError("failed to dispatch Wayland events: %s\n", strerror(errno));
70130e
     }
70130e
 
70130e
+    xf86ProbeOutputModes(scrninfo, 0, 0);
70130e
+
70130e
     xwl_screen->outputs_initialized = TRUE;
70130e
 
70130e
     xf86SetScrnInfoModes(scrninfo);
70130e
-- 
d64d53
1.8.4.2
70130e