summaryrefslogtreecommitdiff
path: root/stack.go
diff options
context:
space:
mode:
Diffstat (limited to 'stack.go')
-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
}