diff options
| author | emersion <contact@emersion.fr> | 2018-09-19 11:37:24 +0200 |
|---|---|---|
| committer | emersion <contact@emersion.fr> | 2018-09-20 18:37:51 +0200 |
| commit | 82f1393cbb7383179eab2d10ff679a975d1f5c43 (patch) | |
| tree | 97fd40cb652ac233fdbf03929da1977bc89d1bcb /swaybar/render.c | |
| parent | fa4308c5abecaeef870aced574e9d05e24e62392 (diff) | |
swaybar: handle hotplugging
Don't kill and respawn swaybars on hotplug.
Diffstat (limited to 'swaybar/render.c')
| -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 97690338..1f2dcc30 100644 --- a/swaybar/render.c +++ b/swaybar/render.c @@ -1,4 +1,5 @@ #define _POSIX_C_SOURCE 200809L +#include <assert.h> #include <limits.h> #include <stdlib.h> #include <stdint.h> @@ -480,6 +481,8 @@ static uint32_t render_to_cairo(cairo_t *cairo, } void render_frame(struct swaybar *bar, struct swaybar_output *output) { + assert(output->surface != NULL); + struct swaybar_hotspot *hotspot, *tmp; wl_list_for_each_safe(hotspot, tmp, &output->hotspots, link) { if (hotspot->destroy) { |
