screenshooter: stop using frame_signal void *data parameter to get weston_output
authorLeandro Ribeiro <leandrohr@riseup.net>
Wed, 27 Nov 2019 15:43:01 +0000 (12:43 -0300)
committerLeandro Ribeiro <leandrohr@riseup.net>
Wed, 27 Nov 2019 16:46:51 +0000 (13:46 -0300)
commitdd0d0b0df1ed3f14494891d1df22c400750f22ec
tree87282b4204897d566defcc15b59bb16cadbd01cd
parent2619bfe420c493b0adef57cf2f57b3b5fe7d7078
screenshooter: stop using frame_signal void *data parameter to get weston_output

Instead of getting weston_output from the frame_signal argument 'void *data',
add weston_output in the private data struct of the users that are listening
to frame_signal. With this change we are able to pass previous_damage as the
data argument.

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