puklaus's picture

[OpenTK] NativeWindow reported as focused whenever mouse enters its area, even without clicking (win32)

Project:The Open Toolkit library
Version:1.0-beta-3
Component:Code
Category:bug report
Priority:normal
Assigned:Unassigned
Status:closed
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

Comment viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
the Fiddler's picture

#1

Title:Focused prob» [OpenTK] NativeWindow reported as focused whenever mouse enters its area, even without clicking (win32)
Version:all versions» 1.0-beta-1
Status:open» confirmed

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?

the Fiddler's picture

#2

Version:1.0-beta-1» 0.9.x-dev
Status:confirmed» fixed

Ok, fixed in r2550.

I have replaced the mouse tracking code with a more robust implementation that relies on TrackMouseEvent, rather than SetCapture/ReleaseCapture.

the Fiddler's picture

#3

Version:0.9.x-dev» 1.0-beta-3
Status:fixed» closed

Closing issues fixed in opentk-1.0-beta-3.