summaryrefslogtreecommitdiff
path: root/sysdata_darwin.go
diff options
context:
space:
mode:
Diffstat (limited to 'sysdata_darwin.go')
-rw-r--r--sysdata_darwin.go10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdata_darwin.go b/sysdata_darwin.go
index 19b2d49..26bcd98 100644
--- a/sysdata_darwin.go
+++ b/sysdata_darwin.go
@@ -412,3 +412,13 @@ func (s *sysData) repaintAll() {
}
<-ret
}
+
+func (s *sysData) center() {
+ ret := make(chan struct{})
+ defer close(ret)
+ uitask <- func() {
+ C.center(s.id)
+ ret <- struct{}{}
+ }
+ <-ret
+}