Skip to content

Commit ac1ed63

Browse files
ErikReideremersion
authored andcommitted
Init the damage_ring bounds on output creation
Otherwise the initial bounds would be `INT_MAX` until `handle_mode` or `handle_commit` is called :)
1 parent f21090f commit ac1ed63

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

sway/desktop/output.c

+3
Original file line numberDiff line numberDiff line change
@@ -999,6 +999,9 @@ void handle_new_output(struct wl_listener *listener, void *data) {
999999
}
10001000
output->server = server;
10011001
wlr_damage_ring_init(&output->damage_ring);
1002+
int width, height;
1003+
wlr_output_transformed_resolution(output->wlr_output, &width, &height);
1004+
wlr_damage_ring_set_bounds(&output->damage_ring, width, height);
10021005

10031006
wl_signal_add(&wlr_output->events.destroy, &output->destroy);
10041007
output->destroy.notify = handle_destroy;

0 commit comments

Comments
 (0)