On Sat Jun 29 01:12:58 2024 +0000, Fabian Maurer wrote:
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.
Eh, you are sending a message to the window created by another thread, the message should be queued in such a case. I wonder why it doesn't work.