summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhhvn <dev@hhvn.uk>2024-02-21 18:32:47 +0000
committerhhvn <dev@hhvn.uk>2024-02-21 18:32:47 +0000
commitcf562d8ce1bc65e79a83e13b1f232e322d7a62ca (patch)
tree0b8f4fa83e0713eb7dd5332ff87952a280ae87f3
parent2f2a90ba85c36a0935840654fd45d9a8a9798610 (diff)
Add the fallthrough that should've been there for ages
-rw-r--r--bar.go2
-rw-r--r--main.go1
2 files changed, 2 insertions, 1 deletions
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":