http://bugs.winehq.org/show_bug.cgi?id=21770
--- Comment #11 from Vincent Povirk madewokherd@gmail.com 2010-03-13 14:29:41 --- Setting the timestamp in X11DRV_SetFocus to CurrentTime also works around this issue. It seems the adjustment for EVENT_x11_time_to_win32_time hasn't been set yet.
This problem likely already existed for unmanaged windows; now it applies to virtual desktops too, because they care about X focus.
Possible solutions: * Just use CurrentTime if we don't have a timestamp yet. * At startup, make some X calls that force us to get an event with a timestamp. (XPropertyEvent is common for this.)