diff options
author | Brian Ashworth <bosrsf04@gmail.com> | 2019-03-08 12:57:50 -0500 |
---|---|---|
committer | Drew DeVault <sir@cmpwn.com> | 2019-03-11 10:56:20 -0400 |
commit | fb4838c943599b01c54803aab97b3d0d1693db06 (patch) | |
tree | ae971ef70bb2e68532e081b388a84504f7064f08 /sway | |
parent | output_damage_whole_container: damage subsurfaces (diff) | |
download | sway-fb4838c943599b01c54803aab97b3d0d1693db06.tar.gz sway-fb4838c943599b01c54803aab97b3d0d1693db06.tar.zst sway-fb4838c943599b01c54803aab97b3d0d1693db06.zip |
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 (limited to 'sway')
-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; |