diff options
-rw-r--r-- | sway/desktop/output.c | 10 |
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 | ||
453 | static void output_damage_view(struct sway_output *output, | 453 | void 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 | ||
461 | void 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 |
467 | void output_damage_box(struct sway_output *output, struct wlr_box *_box) { | 463 | void output_damage_box(struct sway_output *output, struct wlr_box *_box) { |
468 | struct wlr_box box; | 464 | struct wlr_box box; |