diff options
| author | Pietro Gagliardi <[email protected]> | 2014-02-12 20:55:05 -0500 |
|---|---|---|
| committer | Pietro Gagliardi <[email protected]> | 2014-02-12 20:55:05 -0500 |
| commit | 98d56767a34c3acf6beda2ef801b1daeb4c88971 (patch) | |
| tree | 07677725dd8345162fa067fdbf704f3785f909fa /stdwndclass_windows.go | |
| parent | 4b16716e61e6f551afd1980aa21268c976fa3886 (diff) | |
Each control may only need one event, so combine them all into a single channel whose use depends on the sysData itself. Also we won't need to save the parentWindow anymore, as the change to the make() function will take care of that for us.
Diffstat (limited to 'stdwndclass_windows.go')
| -rw-r--r-- | stdwndclass_windows.go | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/stdwndclass_windows.go b/stdwndclass_windows.go index 035751c..38031e7 100644 --- a/stdwndclass_windows.go +++ b/stdwndclass_windows.go @@ -45,8 +45,8 @@ func stdWndProc(s *sysData) func(hwnd _HWND, uMsg uint32, wParam _WPARAM, lParam // TODO return 0 case _WM_CLOSE: - if sysData.closing != nil { - sysData.closing <- struct{}{} + if s.event != nil { + s.event <- struct{}{} } return 0 default: |
