Zhiyi Zhang
6d26689484
winex11.drv: Call request_selection_contents() after the XFixes extension is initialized.
...
request_selection_contents() checks whether the XFixes extension is available and will start a timer
to check for clipboard content updates at an interval. Running request_selection_contents() before
the XFixes extension is initialized will always start a timer and sends unnecessary clipboard
content change notifications, causing Office right-click menus to disappear.
Signed-off-by: Zhiyi Zhang <zzhang@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2021-03-18 22:04:01 +01:00
Alexandre Julliard
7b4e10c707
libport: Remove the usleep() function replacement.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-12-01 10:22:01 +01:00
Zhipeng Zhao
05d9df73d1
winex11.drv: If the end of the sequence is '\r\n', there is no need to add extra '\r'.
...
Signed-off-by: Zhipeng Zhao <zhaozhipeng@uniontech.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-09-21 21:43:41 +02:00
Alexandre Julliard
7afa53c0f2
winex11: Use standard dlopen() instead of the libwine wrappers.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2020-04-07 14:26:20 +02:00
Sven Baars
6033b3a7fb
winex11.drv: Fix a memory leak (Coverity).
...
Signed-off-by: Sven Baars <sven.wine@gmail.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2019-09-11 22:37:22 +02:00
Michael Stefaniuc
8e1d40b966
winex11.drv: Use the ARRAY_SIZE() macro.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-09-19 23:17:49 +02:00
Michael Stefaniuc
3e9ce1c26f
winex11.drv: Avoid ARRAY_SIZE-like macros.
...
Signed-off-by: Michael Stefaniuc <mstefani@winehq.org>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2018-07-09 10:49:14 +02:00
Alexandre Julliard
401ccc73e2
winex11: If importing an X11 clipboard format fails, try other candidate formats for the target.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-08-25 08:09:06 +02:00
Sebastian Lackner
136a438daa
winex11.drv: Fix compilation when XFixes is not present.
...
Signed-off-by: Sebastian Lackner <sebastian@fds-team.de>
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-30 11:14:27 +02:00
Piotr Caban
22a75a8f07
winex11: Implement clipboard changes tracking using xfixes extension.
...
Signed-off-by: Piotr Caban <piotr@codeweavers.com>
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-24 15:30:24 +02:00
Alexandre Julliard
68bbf6fb18
winex11: Remove all trailing nulls when exporting text strings.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-10 16:55:37 -05:00
Alexandre Julliard
0bdebc66c6
winex11: Simplify the clipboard HTML export function.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-05-10 15:30:56 -05:00
Alexandre Julliard
8df9a11ade
winex11: Add basic support for importing text/html clipboard format.
...
Based on a patch by Damjan Jovanovic.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-11 22:28:49 +01:00
Alexandre Julliard
d4f8366fa6
winex11: Periodically check for selection changes using a timer.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-10 19:19:16 +01:00
Alexandre Julliard
1137e3502d
winex11: Don't update the clipboard if the X11 selection hasn't changed.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-10 19:19:16 +01:00
Alexandre Julliard
e4cc5bf1b9
winex11: Merge reading the selection data into the conversion function.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2017-01-10 19:19:16 +01:00
Alexandre Julliard
89f2dafe50
winex11: Export the TIMESTAMP clipboard property.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-28 23:17:16 +09:00
Alexandre Julliard
f59c076d13
winex11: Add clipboard support for the polymorphic TEXT format.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-28 23:17:07 +09:00
Alexandre Julliard
0aa7d402d2
winex11: Remove support for exporting the CF_OEMTEXT and CF_LOCALE formats.
...
They can be synthesized from CF_UNICODETEXT.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-27 21:43:25 +09:00
Alexandre Julliard
c837adf38e
winex11: Remove support for exporting the CF_BITMAP, CF_PALETTE and CF_DIBV5 formats.
...
They can be synthesized from CF_DIB.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-27 21:43:25 +09:00
Alexandre Julliard
29fc759d52
winex11: Remove support for exporting the CF_METAFILEPICT format.
...
It can be synthesized from CF_ENHMETAFILE.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-27 21:43:25 +09:00
Alexandre Julliard
82dfbba5c6
winex11: Remove support for owner-displayed clipboard formats.
...
It cannot work across prefixes, and it didn't work previously either.
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-27 21:43:25 +09:00
Alexandre Julliard
aa4b29b9bc
winex11: Always go through Unicode for clipboard strings.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-27 21:43:25 +09:00
Alexandre Julliard
8493fc782b
winex11: Add a helper function to export a Unicode string.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-27 21:43:25 +09:00
Alexandre Julliard
1e7878cfa5
winex11: Add a helper function to import a Unicode string.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-27 21:43:24 +09:00
Alexandre Julliard
4bbe8f90d4
winex11: Ignore X11 errors happening on the clipboard display connection.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-26 21:54:31 +09:00
Alexandre Julliard
a52d09198d
winex11: Run a single clipboard manager thread per window station, inside the explorer process.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-26 21:53:52 +09:00
Alexandre Julliard
a46d736012
winex11: Remove the driver-side clipboard data storage.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-26 20:27:52 +09:00
Alexandre Julliard
e9461b4567
winex11: Add a helper function to register builtin clipboard formats.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-26 20:27:51 +09:00
Alexandre Julliard
adf96003a5
winex11: Implement the UpdateClipboard entry point to refresh the cache.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-23 20:30:33 +09:00
Alexandre Julliard
a502a36af8
winex11: Store the list of X11 formats when retrieving the TARGETS property.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-23 20:30:13 +09:00
Alexandre Julliard
548ce58b4f
winex11: Reimplement import_targets to go through the format list in the standard way.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-23 12:33:44 +09:00
Alexandre Julliard
df9ff6872c
winex11: If multiple clipboard formats can be exported, use the first available one.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-23 12:20:32 +09:00
Alexandre Julliard
4415406020
winex11: Get rid of support for reigstering Win32 formats without a corresponding atom.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-22 22:24:07 +09:00
Alexandre Julliard
242673589b
winex11: Add helper functions to find and register X11 clipboard formats.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-22 22:24:06 +09:00
Alexandre Julliard
f4f6353079
winex11: Add helper functions to find and register Win32 clipboard formats.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-22 22:24:06 +09:00
Alexandre Julliard
80d02bc849
winex11: Support import multiple drag&drop properties in a single call.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-22 22:15:10 +09:00
Alexandre Julliard
7f39cc3f2b
winex11: Use a standard import function to retrieve the TARGETS property.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-22 12:50:34 +09:00
Alexandre Julliard
96930bdc04
winex11: Use standard clipboard APIs to retrieve the data to export.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-21 21:17:20 +09:00
Alexandre Julliard
8e5ee4474f
winex11: Reimplement targets enumeration using standard clipboard APIs.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-21 21:17:19 +09:00
Alexandre Julliard
d1f539ac00
winex11: Use a standard export function to handle TARGETS requests.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-21 21:17:19 +09:00
Alexandre Julliard
c6e787232e
winex11: Use a standard export function to handle MULTIPLE requests.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-21 21:17:19 +09:00
Alexandre Julliard
2215d770c5
winex11: Merge converting the selection and importing it.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-21 21:17:19 +09:00
Alexandre Julliard
f88b632142
winex11: Move common code out of the import functions and simplify their usage.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-20 22:50:33 +09:00
Alexandre Julliard
fd41ddec0a
winex11: Move common code out of the export functions and simplify their usage.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-20 22:50:33 +09:00
Alexandre Julliard
7d0ddff2d8
winex11: Add a helper function to convert the selection.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-20 22:50:33 +09:00
Alexandre Julliard
2df558af9c
winex11: Add a helper function to store property data.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-20 11:33:51 +09:00
Alexandre Julliard
49a65a3bd7
winex11: Add a debug helper to trace atom names.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-19 23:08:22 +09:00
Alexandre Julliard
13ff291905
winex11: Use the correct data type for property atoms.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-19 22:57:01 +09:00
Alexandre Julliard
63201471ab
winex11: Add separate export functions for the various string types.
...
Signed-off-by: Alexandre Julliard <julliard@winehq.org>
2016-09-19 10:59:51 +09:00