summaryrefslogtreecommitdiff
path: root/main.go
diff options
context:
space:
mode:
authorhhvn <dev@hhvn.uk>2024-01-27 15:26:47 +0000
committerhhvn <dev@hhvn.uk>2024-01-27 15:26:47 +0000
commit0a5f0070526a2c32e7b7f65a50ecd993babfedfa (patch)
tree553721f479a83c9bc9437cc9329eed51c3ae7ded /main.go
parent764d1c63768b1bef017bb6c8c31b3dc8540a37fb (diff)
Remove handle structure from bar/
Diffstat (limited to 'main.go')
-rw-r--r--main.go12
1 files changed, 6 insertions, 6 deletions
diff --git a/main.go b/main.go
index d125228..d8866b8 100644
--- a/main.go
+++ b/main.go
@@ -32,9 +32,9 @@ func main() {
}
defer bspc.Cleanup()
- bar.Handle.NewState <- bspc.Handle.State
+ bar.NewState <- bspc.Handle.State
for _, m := range bspc.Handle.State.Monitors {
- bar.Handle.Create <- m.ID
+ bar.Create <- m.ID
}
for {
@@ -42,7 +42,7 @@ func main() {
case s := <-signals:
common.Error("%s\n", s)
return
- case err := <-bar.Handle.Err:
+ case err := <-bar.Err:
common.Error("%s\n", err)
return
case err := <-bspc.Handle.EvErr:
@@ -55,9 +55,9 @@ func main() {
switch event.Name {
case "monitor_add":
case "monitor_geometry":
- bar.Handle.Create <- id
+ bar.Create <- id
case "monitor_remove":
- bar.Handle.Destroy <- id
+ bar.Destroy <- id
}
}
}
@@ -65,7 +65,7 @@ func main() {
common.Error("Couldn't load bspwm state: %s\n", err)
return
case <-bspc.Handle.StateUpdate:
- bar.Handle.NewState <- bspc.Handle.State
+ bar.NewState <- bspc.Handle.State
}
}
}