From 1ef3e3a0dc1a5652bbb2ad68e0f8eaab9d568f92 Mon Sep 17 00:00:00 2001 From: sewn Date: Fri, 28 Jun 2024 12:09:57 +0300 Subject: [PATCH] ignore seats that don't belong to a bar --- dam.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dam.c b/dam.c index 45f6f2c..cf086a9 100644 --- a/dam.c +++ b/dam.c @@ -161,6 +161,8 @@ bar_draw(Bar *bar) } wl_list_for_each(seat, &seats, link) { + if (seat->bar != bar) + continue; w = TEXTW(bar, seat->mode); drwl_setscheme(bar->drw, colors[SchemeNorm]); x = drwl_text(bar->drw, x, 0, w, bar->height, bar->lrpad / 2, seat->mode, 1);