diff options
author | emersion <contact@emersion.fr> | 2018-07-13 23:15:10 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-07-13 23:15:10 +0100 |
commit | 4e486a01bb08120b3b02b5fed381a569dea3219e (patch) | |
tree | 62c6576a23287a317c6169ac7873fdfbdca04aa7 /swaybar | |
parent | e0e31418d413a16154e7487367a889c629783d1b (diff) | |
parent | c73a40555f41ad765c10ea5912525c56770e71d1 (diff) |
Merge pull request #2269 from minus7/swaybarbg-crash-on-dpms-resume
swaybar/bg: Fix crash on DPMS off
Diffstat (limited to 'swaybar')
-rw-r--r-- | swaybar/render.c | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/swaybar/render.c b/swaybar/render.c index 2ebd338e..909b56f4 100644 --- a/swaybar/render.c +++ b/swaybar/render.c @@ -503,6 +503,9 @@ void render_frame(struct swaybar *bar, struct swaybar_output *output) { output->buffers, output->width * output->scale, output->height * output->scale); + if (!output->current_buffer) { + return; + } cairo_t *shm = output->current_buffer->cairo; cairo_save(shm); |