From 19227080da161bc96e4cc8ed447059cefbca8a6a Mon Sep 17 00:00:00 2001 From: Pietro Gagliardi Date: Mon, 17 Mar 2014 20:42:36 -0400 Subject: 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. --- sysdata.go | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'sysdata.go') diff --git a/sysdata.go b/sysdata.go index b31a24e..cdf6a14 100644 --- a/sysdata.go +++ b/sysdata.go @@ -17,7 +17,7 @@ func newEvent() chan struct{} { type cSysData struct { ctype int event chan struct{} - resize func(x int, y int, width int, height int, winheight int) error + resize func(x int, y int, width int, height int) []resizerequest alternate bool // editable for Combobox, multi-select for listbox, password for lineedit handler AreaHandler // for Areas } @@ -109,3 +109,11 @@ func mksysdata(ctype int) *sysData { }, } } + +type resizerequest struct { + sysData *sysData + x int + y int + width int + height int +} -- cgit v1.2.3