http://bugs.winehq.org/show_bug.cgi?id=4601
------- Additional Comments From dank@kegel.com 2006-09-04 15:47 ------- It looks like there were two bugs in x11drv/clipboard.c: 1) intern_atoms() had not been called after most of firefox's formats were registered, so they didn't have X atoms. 2) wine was protecting itself against crashing due to BadAtom errors on zero atoms when looking at the list of selection type atoms it *sent*, but not when looking at the list of selection type atoms it *received*.
I'm attaching a somewhat tested patch that deals with both problems.
Another nice way to reproduce the problem is: 1) start firefox 2) select some html text and copy 3) start windows notepad 4) paste Bammo, BadAtom error without this patch.