aboutsummaryrefslogtreecommitdiff
path: root/swaybar
diff options
context:
space:
mode:
Diffstat (limited to 'swaybar')
-rw-r--r--swaybar/bar.c3
-rw-r--r--swaybar/render.c1
2 files changed, 2 insertions, 2 deletions
diff --git a/swaybar/bar.c b/swaybar/bar.c
index 44f4ee31..afbce7cc 100644
--- a/swaybar/bar.c
+++ b/swaybar/bar.c
@@ -148,7 +148,8 @@ static void render_all_frames(struct swaybar *bar) {
static void display_in(int fd, short mask, void *_bar) {
struct swaybar *bar = (struct swaybar *)_bar;
if (wl_display_dispatch(bar->display) == -1) {
- wlr_log(L_ERROR, "failed to dispatch wl: %d", errno);
+ bar_teardown(bar);
+ exit(0);
}
}
diff --git a/swaybar/render.c b/swaybar/render.c
index ec1239a1..a5834f4b 100644
--- a/swaybar/render.c
+++ b/swaybar/render.c
@@ -22,7 +22,6 @@ static uint32_t render_status_line_text(cairo_t *cairo,
if (!status->text) {
return 0;
}
- //wlr_log(L_DEBUG, "focused %d", focused);
cairo_set_source_u32(cairo, focused ?
config->colors.focused_statusline : config->colors.statusline);
static const int margin = 3;