https://bugs.winehq.org/show_bug.cgi?id=36854
--- Comment #21 from Karol Herbst wine@karolherbst.de --- so if I understand this correctly, divinity calls ToUnicodeEx in a loop until it stops returning -1, which means the dead key state vanish. So in the end, there should be something like
"X11DRV_ToUnicodeEx IN virtKey 192 scanCode 41 lpKeyState bufW_size 64 flags 0 OUT -1 bufW X11DRV_ToUnicodeEx IN virtKey 192 scanCode 41 lpKeyState bufW_size 64 flags 0 OUT 1 bufW ^"
where maybe the data of lpKeyState is different between calls (didn't check this so far)?