diff options
author | 2018-07-13 23:15:10 +0100 | |
---|---|---|
committer | 2018-07-13 23:15:10 +0100 | |
commit | 4e486a01bb08120b3b02b5fed381a569dea3219e (patch) | |
tree | 62c6576a23287a317c6169ac7873fdfbdca04aa7 /swaybar | |
parent | Merge pull request #2267 from emersion/simplify-popup-constraints (diff) | |
parent | swaybar/bg: Fix crash on DPMS off (diff) | |
download | sway-4e486a01bb08120b3b02b5fed381a569dea3219e.tar.gz sway-4e486a01bb08120b3b02b5fed381a569dea3219e.tar.zst sway-4e486a01bb08120b3b02b5fed381a569dea3219e.zip |
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) { | |||
503 | output->buffers, | 503 | output->buffers, |
504 | output->width * output->scale, | 504 | output->width * output->scale, |
505 | output->height * output->scale); | 505 | output->height * output->scale); |
506 | if (!output->current_buffer) { | ||
507 | return; | ||
508 | } | ||
506 | cairo_t *shm = output->current_buffer->cairo; | 509 | cairo_t *shm = output->current_buffer->cairo; |
507 | 510 | ||
508 | cairo_save(shm); | 511 | cairo_save(shm); |