aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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,
450 damage_surface_iterator, &whole); 450 damage_surface_iterator, &whole);
451} 451}
452 452
453static void output_damage_view(struct sway_output *output, 453void output_damage_from_view(struct sway_output *output,
454 struct sway_view *view, bool whole) { 454 struct sway_view *view) {
455 if (!view_is_visible(view)) { 455 if (!view_is_visible(view)) {
456 return; 456 return;
457 } 457 }
458 bool whole = false;
458 output_view_for_each_surface(output, view, damage_surface_iterator, &whole); 459 output_view_for_each_surface(output, view, damage_surface_iterator, &whole);
459} 460}
460 461
461void output_damage_from_view(struct sway_output *output,
462 struct sway_view *view) {
463 output_damage_view(output, view, false);
464}
465
466// Expecting an unscaled box in layout coordinates 462// Expecting an unscaled box in layout coordinates
467void output_damage_box(struct sway_output *output, struct wlr_box *_box) { 463void output_damage_box(struct sway_output *output, struct wlr_box *_box) {
468 struct wlr_box box; 464 struct wlr_box box;