[PATCH 04/10] compositor-headless, compositor-rdp: Don't call weston_output_move()

Ander Conselvan de Oliveira conselvan2 at gmail.com
Fri Dec 13 12:10:52 PST 2013


From: Ander Conselvan de Oliveira <ander.conselvan.de.oliveira at intel.com>

The call to weston_output_move() when creating the output is
unnecessary. That is already called by wesotn_output_init().
---
 src/compositor-headless.c |    2 --
 src/compositor-rdp.c      |    2 --
 2 files changed, 4 deletions(-)

diff --git a/src/compositor-headless.c b/src/compositor-headless.c
index 9d9f6dd..5497455 100644
--- a/src/compositor-headless.c
+++ b/src/compositor-headless.c
@@ -114,8 +114,6 @@ headless_compositor_create_output(struct headless_compositor *c,
 	output->base.make = "weston";
 	output->base.model = "headless";
 
-	weston_output_move(&output->base, 0, 0);
-
 	loop = wl_display_get_event_loop(c->base.wl_display);
 	output->finish_frame_timer =
 		wl_event_loop_add_timer(loop, finish_frame_handler, output);
diff --git a/src/compositor-rdp.c b/src/compositor-rdp.c
index 8a302f8..58342b9 100644
--- a/src/compositor-rdp.c
+++ b/src/compositor-rdp.c
@@ -486,8 +486,6 @@ rdp_compositor_create_output(struct rdp_compositor *c, int width, int height,
 	if (pixman_renderer_output_create(&output->base) < 0)
 		goto out_shadow_surface;
 
-	weston_output_move(&output->base, 0, 0);
-
 	loop = wl_display_get_event_loop(c->base.wl_display);
 	output->finish_frame_timer = wl_event_loop_add_timer(loop, finish_frame_handler, output);
 
-- 
1.7.9.5



More information about the wayland-devel mailing list