
[OpenTK] NativeWindow reported as focused whenever mouse enters its area, even without clicking (win32)
Posted Wednesday, 25 November, 2009 - 11:46 by puklaus| Project: | The Open Toolkit library |
| Version: | 1.0-beta-3 |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | closed |
Jump to:
Description
Tested this with "GameWindow states" test.
When window loses focus, Focused sets to False.
But it becomes True when moving mouse inside the window and other window still has focus.


Comments
#1
Thanks, I am aware of this issue.
Edit: commenting out WinGLNative.cs:308 fixes this issue, but causes the window to become unresponsive to clicks on its client area. Any ideas?
#2
Ok, fixed in r2550.
I have replaced the mouse tracking code with a more robust implementation that relies on TrackMouseEvent, rather than SetCapture/ReleaseCapture.
#3
Closing issues fixed in opentk-1.0-beta-3.