<div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
@@ -1117,16 +1199,17 @@ x11_compositor_create(struct wl_display *display,<br>
-               x += option_width ? option_width : o->width;<br>
+               x += (container_of(c->base.output_list.prev,<br>
+                               struct weston_output, link))->region.extents.x2;<br>
+<br>
                output_count++;<br>
                if (option_count && output_count >= option_count)<br>
                        break;<br>
@@ -1134,9 +1217,11 @@ x11_compositor_create(struct wl_display *display,<br>
-               x += width;<br>
+               x += (container_of(c->base.output_list.prev,<br>
+                               struct weston_output, link))->region.extents.x2;<br>
        }<br>
<br>
        c->xcb_source =<br>
@@ -1160,37 +1245,77 @@ err_free:<br></blockquote><div><br><br>These should be assigned '=' not '+='.<br></div></div><br>