winex11.drv: Make sure that the selectionAcquired flag has been set before returning from X11DRV_AcquireClipboard.

Rob Shearman robertshearman at gmail.com
Tue Dec 1 07:16:20 CST 2009


X11DRV_CLIPBOARD_UpdateCache depends on selectionAcquired being set if
the current process is the selection owner, otherwise it will defer to
getting the clipformats from X, manufacturing extra formats that the
app may not be expecting, having just set the formats itself. Worse
still, since selectionAcquired is set in another thread this behaviour
is not predicatable and it may sometimes use the clipformats already
set and other times defer to X.
---
 dlls/winex11.drv/clipboard.c |   12 ++++++++++--
 1 files changed, 10 insertions(+), 2 deletions(-)

Previously the ole32 clipboard test would fail around 3/4 of the time
for me. With this fix, it always succeeds.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0004-winex11.drv-Make-sure-that-the-selectionAcquired-fla.patch
Type: text/x-patch
Size: 1154 bytes
Desc: not available
URL: <http://www.winehq.org/pipermail/wine-patches/attachments/20091201/19e97408/attachment.bin>


More information about the wine-patches mailing list