Sorry for all of those who were looking forward for MB_TASKMODAL support, but I fixed my problem without having to implement that.
The problem came from SetWindowPos@dlls/x11drv/winpos.c which didn't react properly to the SWP_NOACTIVATE flag.
I attached a patch to this e-mail, comments are welcome.
Laurent Pinchart