aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop/output.c
diff options
context:
space:
mode:
Diffstat (limited to 'sway/desktop/output.c')
-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 54b9f294..3ff4d726 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;