Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
W
wine-winehq
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Registry
Registry
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
wine
wine-winehq
Commits
828ac88f
Commit
828ac88f
authored
Apr 08, 2008
by
Alexandre Julliard
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
winex11: Improved handling of broken 8-bit TARGETS selection.
parent
28553fa8
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
2 deletions
+16
-2
clipboard.c
dlls/winex11.drv/clipboard.c
+16
-2
No files found.
dlls/winex11.drv/clipboard.c
View file @
828ac88f
...
...
@@ -1902,8 +1902,22 @@ static int X11DRV_CLIPBOARD_QueryAvailableData(LPCLIPBOARDINFO lpcbinfo)
* The TARGETS property should have returned us a list of atoms
* corresponding to each selection target format supported.
*/
if
(
aformat
==
32
&&
(
atype
==
XA_ATOM
||
atype
==
x11drv_atom
(
TARGETS
)))
X11DRV_CLIPBOARD_InsertSelectionProperties
(
display
,
targetList
,
cSelectionTargets
);
if
(
atype
==
XA_ATOM
||
atype
==
x11drv_atom
(
TARGETS
))
{
if
(
aformat
==
32
)
{
X11DRV_CLIPBOARD_InsertSelectionProperties
(
display
,
targetList
,
cSelectionTargets
);
}
else
if
(
aformat
==
8
)
/* work around quartz-wm brain damage */
{
unsigned
long
i
,
count
=
cSelectionTargets
/
sizeof
(
CARD32
);
Atom
*
atoms
=
HeapAlloc
(
GetProcessHeap
(),
0
,
count
*
sizeof
(
Atom
)
);
for
(
i
=
0
;
i
<
count
;
i
++
)
atoms
[
i
]
=
((
CARD32
*
)
targetList
)[
i
];
/* FIXME: byte swapping */
X11DRV_CLIPBOARD_InsertSelectionProperties
(
display
,
atoms
,
count
);
HeapFree
(
GetProcessHeap
(),
0
,
atoms
);
}
}
/* Free the list of targets */
wine_tsx11_lock
();
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment