diff options
| author | Pietro Gagliardi <[email protected]> | 2014-03-01 18:01:30 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-03-01 18:01:30 -0500 |
| commit | d9cf76c1ab46dad314a3cfafad31f7f57845b8b6 (patch) | |
| tree | 0e892e47fb823405c1706fdd005993de78369f20 /prefsize_darwin.go | |
| parent | 5caf0fe84a81e5adbe18568eabe06f2ec674c1b3 (diff) | |
Added windowDidResize: to the Mac OS X delegate for resizing windows. Now to figure out why I can't resize windows myself...
Diffstat (limited to 'prefsize_darwin.go')
| -rw-r--r-- | prefsize_darwin.go | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/prefsize_darwin.go b/prefsize_darwin.go index 316662e..630969e 100644 --- a/prefsize_darwin.go +++ b/prefsize_darwin.go @@ -15,6 +15,7 @@ var ( ) func (s *sysData) preferredSize() (width int, height int) { +if classTypes[s.ctype].make == nil { return 0, 0 } // prevent lockup during window resize cell := C.objc_msgSend_noargs(s.id, _cell) cs := C.objc_msgSend_stret_size_noargs(cell, _cellSize) return int(cs.width), int(cs.height) |
