• Ken Thomases's avatar
    winemac: Ignore clipboard updates provoked by our own call to GetClipboardData(). · c95d2de3
    Ken Thomases authored
    During a call to GetClipboardData(), the app may be asked to render the data
    for a promised format.  This will cause us to receive WM_CLIPBOARDUPDATE.
    
    Almost always, the app will have just rendered the requested format and not
    made any other changes.  Therefore, we don't need to rebuild the Mac pasteboard
    from the Win32 clipboard.  Doing so can cause a race with the other Mac app
    which is querying the pasteboard (for a paste operation, for example).  We
    basically delete the data we _just_ added and rebuild the list of available
    types.  The symptom is that the other Mac app sees the available types change
    and maybe be incomplete.
    
    In theory, the Windows app could make other changes to the clipboard and this
    change would cause us to fail to convey them to the Mac pasteboard.  I consider
    that very unlikely and the tradeoff to improve the common case is worth it.
    Signed-off-by: 's avatarKen Thomases <ken@codeweavers.com>
    Signed-off-by: 's avatarAlexandre Julliard <julliard@winehq.org>
    c95d2de3
Name
Last commit
Last update
..
.gitattributes Loading commit data...
Makefile.in Loading commit data...
clipboard.c Loading commit data...
cocoa_app.h Loading commit data...
cocoa_app.m Loading commit data...
cocoa_clipboard.m Loading commit data...
cocoa_display.m Loading commit data...
cocoa_event.h Loading commit data...
cocoa_event.m Loading commit data...
cocoa_main.m Loading commit data...
cocoa_opengl.h Loading commit data...
cocoa_opengl.m Loading commit data...
cocoa_status_item.m Loading commit data...
cocoa_window.h Loading commit data...
cocoa_window.m Loading commit data...
display.c Loading commit data...
dragdrop.c Loading commit data...
event.c Loading commit data...
gdi.c Loading commit data...
image.c Loading commit data...
ime.c Loading commit data...
keyboard.c Loading commit data...
macdrv.h Loading commit data...
macdrv_cocoa.h Loading commit data...
macdrv_main.c Loading commit data...
macdrv_res.h Loading commit data...
mouse.c Loading commit data...
opengl.c Loading commit data...
surface.c Loading commit data...
systray.c Loading commit data...
window.c Loading commit data...
winemac.drv.spec Loading commit data...
winemac.rc Loading commit data...