sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit c02d2a01289581fd3c32a22e1a498ffad736281d
parent 7580718d12ed752ed5565e28ce3d46c3a589ffe3
Author: Brian Ashworth <bosrsf04@gmail.com>
Date:   Fri,  8 Mar 2019 12:57:50 -0500

damage: remove output_damage_view

This removes `output_damage_view` since it is unnecessary. The logic
has been moved into its only caller `output_damage_from_view`. When
damaging the whole view, `output_damage_whole_container` should be used
instead

Diffstat:
Msway/desktop/output.c | 10+++-------
1 file changed, 3 insertions(+), 7 deletions(-)

diff --git a/sway/desktop/output.c b/sway/desktop/output.c @@ -450,19 +450,15 @@ void output_damage_surface(struct sway_output *output, double ox, double oy, damage_surface_iterator, &whole); } -static void output_damage_view(struct sway_output *output, - struct sway_view *view, bool whole) { +void output_damage_from_view(struct sway_output *output, + struct sway_view *view) { if (!view_is_visible(view)) { return; } + bool whole = false; output_view_for_each_surface(output, view, damage_surface_iterator, &whole); } -void output_damage_from_view(struct sway_output *output, - struct sway_view *view) { - output_damage_view(output, view, false); -} - // Expecting an unscaled box in layout coordinates void output_damage_box(struct sway_output *output, struct wlr_box *_box) { struct wlr_box box;