From cf562d8ce1bc65e79a83e13b1f232e322d7a62ca Mon Sep 17 00:00:00 2001 From: hhvn Date: Wed, 21 Feb 2024 18:32:47 +0000 Subject: Add the fallthrough that should've been there for ages --- bar.go | 2 +- main.go | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/bar.go b/bar.go index 6c3c981..b735944 100644 --- a/bar.go +++ b/bar.go @@ -195,7 +195,7 @@ func Destroy(state *bspc.State, id int) error { func Cleanup(state *bspc.State) { if state != nil { for _, b := range bars { - b.destroy(finalstate) + b.destroy(state) } } } diff --git a/main.go b/main.go index 4bef201..58e55b9 100644 --- a/main.go +++ b/main.go @@ -72,6 +72,7 @@ func main() { if err == nil { switch event.Name { case "monitor_add": + fallthrough case "monitor_geometry": Create(state, id) case "monitor_remove": -- cgit v1.2.3