renderer: change frame_signal emission to pass previous_damage as data argument
authorLeandro Ribeiro <leandrohr@riseup.net>
Wed, 27 Nov 2019 14:20:47 +0000 (11:20 -0300)
committerLeandro Ribeiro <leandrohr@riseup.net>
Wed, 27 Nov 2019 16:47:09 +0000 (13:47 -0300)
This will make possible to users that are listening to frame_signal to get
previous_damage from the data parameter instead of using
output->previous_damage.

Signed-off-by: Leandro Ribeiro <leandrohr@riseup.net>
libweston/compositor.c

index 47f7edfdf4d088356d44d1df3aedd8104687d1fa..2025039e60b0dbe92007701a79475ebb5aaa29c1 100644 (file)
@@ -2723,7 +2723,7 @@ weston_output_repaint(struct weston_output *output, void *repaint_data)
                weston_output_update_matrix(output);
 
        r = output->repaint(output, &output_damage, repaint_data);
-       wl_signal_emit(&output->frame_signal, output);
+       wl_signal_emit(&output->frame_signal, &output_damage);
 
        pixman_region32_fini(&output_damage);