summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPietro Gagliardi <[email protected]>2014-02-24 10:44:20 -0500
committerPietro Gagliardi <[email protected]>2014-02-24 10:44:20 -0500
commit1510af0005529659798e69fcd9c8f545ee0aa3e1 (patch)
tree773b4d8dfbf4e9eecf0ba114b083beafe3039ab6
parent1c540117d362e8e2e66032769beb6f957addbd7a (diff)
Fixed some compiler errors in the last few commits.
-rw-r--r--stack.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/stack.go b/stack.go
index fb6af57..685d223 100644
--- a/stack.go
+++ b/stack.go
@@ -42,7 +42,7 @@ func (s *Stack) SetStretchy(index int) {
s.lock.Lock()
defer s.lock.Unlock()
- s[index] = true // TODO explicitly check for index out of bounds?
+ s.stretchy[index] = true // TODO explicitly check for index out of bounds?
}
func (s *Stack) make(window *sysData) error {
@@ -94,7 +94,7 @@ func (s *Stack) setRect(x int, y int, width int, height int) error {
stretchyht /= nStretchy
}
}
- for i, c := range controls {
+ for i, c := range s.controls {
if !s.stretchy[i] {
continue
}