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 | Merge pull request #2671 from emersion/output-execute-no-focus (diff) | |
download | sway-82f1393cbb7383179eab2d10ff679a975d1f5c43.tar.gz sway-82f1393cbb7383179eab2d10ff679a975d1f5c43.tar.zst sway-82f1393cbb7383179eab2d10ff679a975d1f5c43.zip |
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 @@ | |||
1 | #define _POSIX_C_SOURCE 200809L | 1 | #define _POSIX_C_SOURCE 200809L |
2 | #include <assert.h> | ||
2 | #include <limits.h> | 3 | #include <limits.h> |
3 | #include <stdlib.h> | 4 | #include <stdlib.h> |
4 | #include <stdint.h> | 5 | #include <stdint.h> |
@@ -480,6 +481,8 @@ static uint32_t render_to_cairo(cairo_t *cairo, | |||
480 | } | 481 | } |
481 | 482 | ||
482 | void render_frame(struct swaybar *bar, struct swaybar_output *output) { | 483 | void render_frame(struct swaybar *bar, struct swaybar_output *output) { |
484 | assert(output->surface != NULL); | ||
485 | |||
483 | struct swaybar_hotspot *hotspot, *tmp; | 486 | struct swaybar_hotspot *hotspot, *tmp; |
484 | wl_list_for_each_safe(hotspot, tmp, &output->hotspots, link) { | 487 | wl_list_for_each_safe(hotspot, tmp, &output->hotspots, link) { |
485 | if (hotspot->destroy) { | 488 | if (hotspot->destroy) { |