[PATCH xwayland] xwayland: Probe outputs on preinit

Jonas Ådahl jadahl at gmail.com
Sun Sep 1 14:14:43 PDT 2013


When running xwayland, calls to xf86SetDesiredModes() would fail due to
the probed modes list not being populated. This was previously done
indirectly by calling xf86InitialConfiguration() and now needs to be
done explicitly instead.

Signed-off-by: Jonas Ådahl <jadahl at gmail.com>
---
 hw/xfree86/xwayland/xwayland-output.c | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/hw/xfree86/xwayland/xwayland-output.c b/hw/xfree86/xwayland/xwayland-output.c
index 28003ba..53829c3 100644
--- a/hw/xfree86/xwayland/xwayland-output.c
+++ b/hw/xfree86/xwayland/xwayland-output.c
@@ -431,6 +431,8 @@ xwayland_screen_preinit_output(struct xwl_screen *xwl_screen, ScrnInfoPtr scrnin
             FatalError("failed to dispatch Wayland events: %s\n", strerror(errno));
     }
 
+    xf86ProbeOutputModes(scrninfo, 0, 0);
+
     xwl_screen->outputs_initialized = TRUE;
 
     xf86SetScrnInfoModes(scrninfo);
-- 
1.8.1.2



More information about the wayland-devel mailing list