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