winex11.drv: Make sure that the selectionAcquired flag has been set before returning...
authorRob Shearman <robertshearman@gmail.com>
Tue, 1 Dec 2009 13:16:20 +0000 (13:16 +0000)
committerAlexandre Julliard <julliard@winehq.org>
Tue, 1 Dec 2009 14:10:37 +0000 (15:10 +0100)
commitb894925b0ef54007957e21dcfa7df01307a75285
tree0b7b037b50cc92b1ee874fea389cbd727b0c6792
parent0d10ddd4d54e5094d9fddce90b937a72a7b04078
winex11.drv: Make sure that the selectionAcquired flag has been set before returning from X11DRV_AcquireClipboard.

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