aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBrian Ashworth <bosrsf04@gmail.com>2019-03-08 12:57:50 -0500
committerDrew DeVault <sir@cmpwn.com>2019-03-11 10:56:20 -0400
commitfb4838c943599b01c54803aab97b3d0d1693db06 (patch)
treeae971ef70bb2e68532e081b388a84504f7064f08
parente7788c22eed7d307a8d123792bec21d8a948cfd6 (diff)
downloadsway-fb4838c943599b01c54803aab97b3d0d1693db06.zip
sway-fb4838c943599b01c54803aab97b3d0d1693db06.tar.gz
sway-fb4838c943599b01c54803aab97b3d0d1693db06.tar.bz2
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
-rw-r--r--sway/desktop/output.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sway/desktop/output.c b/sway/desktop/output.c
index 54b9f29..3ff4d72 100644
--- 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;