Skip to content

Commit

Permalink
Don't crash if there is no damage during render
Browse files Browse the repository at this point in the history
  • Loading branch information
Nefsen402 authored and emersion committed May 2, 2023
1 parent 029b99b commit db7638a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sway/desktop/render.c
Original file line number Diff line number Diff line change
Expand Up @@ -1018,7 +1018,7 @@ void output_render(struct render_context *ctx) {

if (!pixman_region32_not_empty(damage)) {
// Output isn't damaged but needs buffer swap
goto renderer_end;
return;
}

if (debug.damage == DAMAGE_HIGHLIGHT) {
Expand Down

0 comments on commit db7638a

Please sign in to comment.