http://bugs.winehq.org/show_bug.cgi?id=10142
--- Comment #20 from David Taylor davidt-wine@yadt.co.uk 2008-09-28 10:07:34 --- Created an attachment (id=16326) --> (http://bugs.winehq.org/attachment.cgi?id=16326) Possible fix
I've been experiencing problems with always-on-top windows disappearing when I switch desktops in compiz. I tracked the problem down to wine unmapping the window in certain situations.
I managed to fix the problem by adding '&& !(swp_flags & SWP_NOMOVE)' to the conditions for unmapping the window in X11DRV_SetWindowPos.
Unfortunately, since I'm not entirely sure when (or why) that code IS supposed to be unmapping the window, I could well have broken something else. But, intuitively, if we didn't unmap the window on the original call that moved it off-screen, I don't think we should be unmapping it due to its position in a later call with the SWP_NOMOVE flag set.