From db7638a0e515635e3aa36fa8bef58f3e44b177d8 Mon Sep 17 00:00:00 2001 From: Alexander Orzechowski Date: Tue, 2 May 2023 17:12:21 -0400 Subject: [PATCH] Don't crash if there is no damage during render --- sway/desktop/render.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sway/desktop/render.c b/sway/desktop/render.c index 37e84647ca..92ccfd0999 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -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) {