[PATCH 4/9] compositor-x11: Set original mode after current

alexl at redhat.com alexl at redhat.com
Tue May 28 07:23:35 PDT 2013


From: Alexander Larsson <alexl at redhat.com>

Otherwise we're pointing the original mode on some uninitialized
value.
---
 src/compositor-x11.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/compositor-x11.c b/src/compositor-x11.c
index 279f1b3..ba6d053 100644
--- a/src/compositor-x11.c
+++ b/src/compositor-x11.c
@@ -887,7 +887,6 @@ x11_compositor_create_output(struct x11_compositor *c, int x, int y,
 	if (fullscreen)
 		x11_output_wait_for_map(c, output);
 
-	output->base.origin = output->base.current;
 	output->base.start_repaint_loop = x11_output_start_repaint_loop;
 	if (c->use_pixman)
 		output->base.repaint = x11_output_repaint_shm;
@@ -899,6 +898,7 @@ x11_compositor_create_output(struct x11_compositor *c, int x, int y,
 	output->base.set_dpms = NULL;
 	output->base.switch_mode = NULL;
 	output->base.current = &output->mode;
+	output->base.origin = output->base.current;
 	output->base.make = "xwayland";
 	output->base.model = "none";
 	weston_output_init(&output->base, &c->base,
-- 
1.8.1.4



More information about the wayland-devel mailing list