summaryrefslogtreecommitdiff
path: root/area.go
diff options
context:
space:
mode:
Diffstat (limited to 'area.go')
-rw-r--r--area.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/area.go b/area.go
index b63bfe3..f7aecdd 100644
--- a/area.go
+++ b/area.go
@@ -121,14 +121,14 @@ func (a *Area) make(window *sysData) error {
return nil
}
-func (a *Area) setRect(x int, y int, width int, height int) []resizerequest {
- return []resizerequest{resizerequest{
+func (a *Area) setRect(x int, y int, width int, height int, rr *[]resizerequest) {
+ *rr = append(*rr, resizerequest{
sysData: a.sysData,
x: x,
y: y,
width: width,
height: height,
- }}
+ })
}
func (a *Area) preferredSize() (width int, height int) {