Alexandre Julliard
719e28bd2c
server: Don't increment the clipboard sequence number for delayed rendering or synthesized formats.
...
Based on a patch by Piotr Caban.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-24 13:03:39 +02:00
Sebastian Lackner
df3c2a4a41
user32: Also release GMEM_FIXED data in free_cached_data.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-10-01 15:14:10 +02:00
Alexandre Julliard
ab44b31287
user32: Fix METAFILEPICT marshalling for 64-bit.
...
Spotted by Sebastian Lackner.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-28 11:34:19 +09:00
Sebastian Lackner
0a1da6bce9
user32: Call GlobalUnlock with the correct argument in SetClipboardData.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-28 11:26:09 +09:00
Alexandre Julliard
8f24641ff3
user32: Enforce null termination of strings added to the clipboard.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-27 21:43:24 +09:00
Alexandre Julliard
f0fbf1a9d1
user32: Cache clipboard data on the client side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-26 15:12:21 +09:00
Alexandre Julliard
9ed8f5e83f
user32: Add synthesized clipboard formats on the server side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-26 15:06:10 +09:00
Alexandre Julliard
3044935b0e
user32: Retrieve clipboard data from the server.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-26 14:48:32 +09:00
Alexandre Julliard
c69b4995c5
user32: Retrieve available clipboard formats from the server.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-26 14:20:41 +09:00
Alexandre Julliard
79f90e4e41
user32: Store clipboard data on the server side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-26 14:20:26 +09:00
Alexandre Julliard
11c3867349
user32: Add an UpdateClipboard entry point to allow the driver to refresh the clipboard before it's open.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-23 20:30:15 +09:00
Alexandre Julliard
fe04dd2a4b
user32: Use GetDIBits to retrieve the bitmap header when synthesizing a DIB.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-15 21:02:34 +09:00
Alexandre Julliard
305d89f1ed
server: Return the owner window in the close_clipboard request.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 16:25:08 +09:00
Alexandre Julliard
2bf890d95f
server: Return the owner window in the release_clipboard request.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 16:25:07 +09:00
Alexandre Julliard
c1f62c8985
user32: Clean up clipboard debug traces.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 16:25:07 +09:00
Alexandre Julliard
4bdcf512cf
user32: Fix GetClipboardFormatName behavior for integer formats.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-14 16:25:07 +09:00
Alexandre Julliard
ef08bd7675
user32: Clear last error in EnumClipboardFormats.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-09 22:48:32 +09:00
Sebastian Lackner
4e63a5bf8f
user32: Add missing call to GlobalUnlock in render_synthesized_enhmetafile.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-08 10:08:55 +09:00
Sebastian Lackner
5eb8217f6d
user32: Add missing calls to GlobalUnlock in render_synthesized_dib.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-08 10:08:45 +09:00
Sebastian Lackner
a78fd8a07e
user32: Only call GlobalUnlock when GlobalLock was successful.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-08 10:08:00 +09:00
Alexandre Julliard
9a652e211c
user32: Synthesize bitmap clipboard formats on the user32 side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-07 11:36:24 +09:00
Alexandre Julliard
1993898459
user32: Synthesize metafile clipboard formats on the user32 side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-07 10:51:21 +09:00
Alexandre Julliard
8865f4a4ec
user32: Synthesize text clipboard formats on the user32 side.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-07 00:34:24 +09:00
Alexandre Julliard
fa06ecbfce
user32: Implement GetUpdatedClipboardFormats.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-06 15:35:49 +09:00
Alexandre Julliard
bddab0e7f8
server: Add a release_clipboard request, and notify the owner and viewer on release.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-01 22:02:04 +09:00
Alexandre Julliard
c6f12bd9cc
server: Notify all listeners when the contents of the clipboard have changed.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-30 16:33:04 +09:00
Alexandre Julliard
35537b1d45
server: Implement Add/RemoveClipboardFormatListener.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-29 23:54:40 +09:00
Alexandre Julliard
19d16a7cb1
server: Add some validation of clipboard window handles.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-29 21:31:50 +09:00
Alexandre Julliard
7888382e0a
user32: Notify the clipboard viewer on close even if we are not the owner.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-25 22:09:08 +09:00
Alexandre Julliard
d9df977006
user32: Don't disallow delayed rendering even when not the clipboard owner.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-23 17:57:50 +09:00
Alexandre Julliard
42c221db6c
user32: Don't allow SetClipboardData if the clipboard is not open.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-23 17:35:18 +09:00
Alexandre Julliard
79d2e0a9be
server: Add a request to return clipboard information.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-23 16:29:00 +09:00
Alexandre Julliard
67ee1d3fd8
user32: Get rid of the CLIPBOARDINFO structure.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 23:05:21 +09:00
Alexandre Julliard
98b24dcb50
server: Add a separate request to set the clipboard viewer.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 23:05:20 +09:00
Alexandre Julliard
7258793169
server: Add separate requests for opening and closing the clipboard.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-08-22 16:20:53 +09:00
Vincent Povirk
b68e03f9c9
user32: Don't regard the clipboard as changed if we don't own it.
...
I ran into a situation where user32 will call EndClipboardUpdate even though
the clipboard hasn't changed. It went something like this:
* Program A acquires the clipboard and adds some delay-rendered data.
* Program B requests data from the clipboard, causing program A to receive
WM_RENDERFORMAT.
* Program A calls SetClipboardData to fulfill the request, setting
bCBHasChanged to TRUE.
* Program C acquires the clipboard.
* Program A opens the clipboard to enumerate the formats. When it closes the
clipboard, EndClipboardUpdate is called.
Signed-off-by: Vincent Povirk <vincent@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-05-21 00:53:52 +09:00
Alexandre Julliard
3d7aa246d5
server: Add a request to empty the clipboard.
2015-06-09 22:09:56 +09:00
Alexandre Julliard
0aa1af219f
user32: Disallow format 0 in SetClipboardData.
2015-06-05 18:36:32 +09:00
Alexandre Julliard
25d9fc3ecc
server: Check for the current owner window on the server side for releases.
2015-06-03 19:29:49 +09:00
Alexandre Julliard
070a82e743
user32: Merge the AcquireClipboard and EmptyClipboard driver entry points.
2015-06-03 18:46:53 +09:00
Alexandre Julliard
b7c340de73
user32: Get rid of the unused parameter in the EmptyClipboard driver entry point.
2015-06-03 18:46:53 +09:00
Alexandre Julliard
7ab517c3c6
user32: Remove some unnecessary clipboard helper functions.
2015-05-27 17:42:59 +09:00
Nikolay Sivov
961d26418a
user32: Added AddClipboardFormatListener/RemoveClipboardFormatListener stubs.
2014-03-19 11:33:17 +01:00
Frédéric Delanoy
0f2bed51bd
Assorted spelling fixes.
2014-02-10 15:47:29 +01:00
Piotr Caban
dd573925e5
user32: Use SendNotifyMessage to send WM_DRAWCLIPBOARD.
2013-05-15 19:57:34 +02:00
Alexandre Julliard
7879b8e349
user32: Get rid of the RegisterClipboardFormat driver entry point.
2011-03-07 17:06:50 +01:00
Alexandre Julliard
383d8ac105
user32: Remove GetClipboardFormatName from the user driver interface.
2011-03-04 16:25:52 +01:00
Alexander Scott-Johns
6c6b15f2d4
user32: Partially fix clipboard viewer infinite recursion bug.
2011-01-31 14:04:54 +01:00
Alexandre Julliard
83b66549da
user32: Get rid of 16-bit handles in the driver clipboard interface.
2009-12-23 14:27:31 +01:00
Alexandre Julliard
3313c40b7c
user32: Reimplement 16-bit clipboard functions on top of the 32-bit ones.
2009-12-23 14:27:31 +01:00