sway

i3-compatible Wayland compositor
git clone https://git.awy.one/sway
Log | Files | Refs | README | LICENSE

commit ac1ed638e991c9f5639176ce4ee07059b4f2e1ce
parent f21090f97870af2592f801fef316984200aa6678
Author: Erik Reider <35975961+ErikReider@users.noreply.github.com>
Date:   Sun, 26 Mar 2023 15:47:26 +0200

Init the damage_ring bounds on output creation

Otherwise the initial bounds would be `INT_MAX` until `handle_mode` or `handle_commit` is called :)
Diffstat:
Msway/desktop/output.c | 3+++
1 file changed, 3 insertions(+), 0 deletions(-)

diff --git a/sway/desktop/output.c b/sway/desktop/output.c @@ -999,6 +999,9 @@ void handle_new_output(struct wl_listener *listener, void *data) { } output->server = server; wlr_damage_ring_init(&output->damage_ring); + int width, height; + wlr_output_transformed_resolution(output->wlr_output, &width, &height); + wlr_damage_ring_set_bounds(&output->damage_ring, width, height); wl_signal_add(&wlr_output->events.destroy, &output->destroy); output->destroy.notify = handle_destroy;