On Fri Jun 28 11:15:21 2024 +0000, Jinoh Kang wrote:
As you said, the dialog thread is pumping messages.
I thought it would be a good idea to avoid blocking forever as soon as possible, but now that I think about it, message pump hang is much rarer. Thanks for the heads up :')
You mean something like I did in https://gitlab.winehq.org/DarkShadow44/wine/-/commit/3bf01926aae11ce3aa70b67...
That doesn't work, I used PostMessage intentionally to queue the message at the end of the message queue. Then I know that, once the message is processed, the others are as well. SendMessage should be handles immediately, without going through the message queue like that.
Although even this breaks the tests: https://gitlab.winehq.org/DarkShadow44/wine/-/commit/2f00ffeaf532fafe233a594..., and I'm not sure why that doesn't work. It seems to process the data from SendInput after the posted message is processed. Seems like I don't really understand how exactly SendInput works.