diff options
-rw-r--r-- | sway/desktop/render.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sway/desktop/render.c b/sway/desktop/render.c index 4d242bd7..2b7214c3 100644 --- a/sway/desktop/render.c +++ b/sway/desktop/render.c @@ -1044,7 +1044,9 @@ void output_render(struct sway_output *output, struct timespec *when, fullscreen_con = workspace->current.fullscreen; } - wlr_renderer_begin(renderer, wlr_output->width, wlr_output->height); + if (!wlr_renderer_begin(renderer, wlr_output->width, wlr_output->height)) { + return; + } if (debug.damage == DAMAGE_RERENDER) { int width, height; |