[Mono-dev] Idle & Windows Forms on Win32

Rob Wilkens robwilkens at gmail.com
Mon Jun 11 12:03:10 UTC 2012


I haven't been able to dig into the code too much yet.. But...

 From what i can see XplatUIWin32 only call OnIdle event handlers when 
Application.RaiseIdle(EventArgs e) is called by the application.. It 
doesn't actually call it when the application goes idle.

I've been researching the Windows documentation, and the way for us to 
determine if we're idle or not is to call PeekMessage while we're in the 
getmessage loop (wherever that gets done, i think in GetMessage), and if 
there is a message, process it, and if there's not a message, presume 
we're idle, and call the onidle event handlers there.

Armed with this mini piece of information, if i am right, does anyone 
mind me trying to fix this if i am capable, and i'm not claiming i am?  
I'll throw this into the same branch (in my case, master) that has the 
other idle fixes i was doing before i test it and issue a pull request.

-Rob


More information about the Mono-devel-list mailing list