aboutsummaryrefslogtreecommitdiff
path: root/sway/desktop
diff options
context:
space:
mode:
authorAlexander Orzechowski <alex@ozal.ski>2023-05-02 17:12:21 -0400
committerSimon Ser <contact@emersion.fr>2023-05-02 23:25:50 +0200
commitdb7638a0e515635e3aa36fa8bef58f3e44b177d8 (patch)
treee4cc1b56648674b39d47b8fab8e1fbf3a946f419 /sway/desktop
parent029b99b4829148ef3e899f21bba4fe2a1d4d0db9 (diff)
Don't crash if there is no damage during render
Diffstat (limited to 'sway/desktop')
-rw-r--r--sway/desktop/render.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c
index 37e84647..92ccfd09 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) {