mirror of
https://github.com/swaywm/sway.git
synced 2024-11-29 11:21:28 +00:00
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
This commit is contained in:
parent
e7788c22ee
commit
fb4838c943
|
@ -450,19 +450,15 @@ void output_damage_surface(struct sway_output *output, double ox, double oy,
|
||||||
damage_surface_iterator, &whole);
|
damage_surface_iterator, &whole);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void output_damage_view(struct sway_output *output,
|
void output_damage_from_view(struct sway_output *output,
|
||||||
struct sway_view *view, bool whole) {
|
struct sway_view *view) {
|
||||||
if (!view_is_visible(view)) {
|
if (!view_is_visible(view)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
bool whole = false;
|
||||||
output_view_for_each_surface(output, view, damage_surface_iterator, &whole);
|
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
|
// Expecting an unscaled box in layout coordinates
|
||||||
void output_damage_box(struct sway_output *output, struct wlr_box *_box) {
|
void output_damage_box(struct sway_output *output, struct wlr_box *_box) {
|
||||||
struct wlr_box box;
|
struct wlr_box box;
|
||||||
|
|
Loading…
Reference in a new issue