diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-17 20:42:36 -0400 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-17 20:42:36 -0400 |
| commit | 19227080da161bc96e4cc8ed447059cefbca8a6a (patch) | |
| tree | 818f4d443f469ee962268449d86ca406a7399514 /area.go | |
| parent | c078266c6d091610eb3acddd68090ee697142315 (diff) | |
Changed window resizes so that the actual Control.setRect() functions appended to an array of requests that the resize() function set all at once instead of having each done individually. This will be necessary for what I think will be a solution to the deadlocks. It doesn't work right now; I'm assuming it's allocating too much memory. I know how to fix this, but I'm committing what I have so far to be safe.
Diffstat (limited to 'area.go')
| -rw-r--r-- | area.go | 10 |
1 files changed, 8 insertions, 2 deletions
@@ -121,8 +121,14 @@ func (a *Area) make(window *sysData) error { return nil } -func (a *Area) setRect(x int, y int, width int, height int, winheight int) error { - return a.sysData.setRect(x, y, width, height, winheight) +func (a *Area) setRect(x int, y int, width int, height int) []resizerequest { + return []resizerequest{resizerequest{ + sysData: a.sysData, + x: x, + y: y, + width: width, + height: height, + }} } func (a *Area) preferredSize() (width int, height int) { |
