Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
N
nx-libs
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
dimbor
nx-libs
Commits
6d5cda47
Commit
6d5cda47
authored
Aug 04, 2019
by
Ulrich Sibiller
Committed by
Mike Gabriel
Sep 29, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clipboard.c: improve TARGETS request handling
parent
25cbfd14
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
11 deletions
+10
-11
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+10
-11
No files found.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
6d5cda47
...
...
@@ -599,15 +599,17 @@ FIXME: Do we need this?
if
(
X
->
xselectionrequest
.
target
==
serverTARGETS
)
{
Atom
xa_STRING
=
XA_STRING
;
Atom
targets
[]
=
{
XA_STRING
};
int
numTargets
=
1
;
XChangeProperty
(
nxagentDisplay
,
X
->
xselectionrequest
.
requestor
,
X
->
xselectionrequest
.
property
,
XInternAtom
(
nxagentDisplay
,
"ATOM"
,
0
),
sizeof
(
Atom
)
*
8
,
PropModeReplace
,
(
unsigned
char
*
)
&
xa_STRING
,
1
);
(
unsigned
char
*
)
&
targets
,
numTargets
);
eventSelection
.
property
=
X
->
xselectionrequest
.
property
;
}
else
if
(
X
->
xselectionrequest
.
target
==
nxagentTimestampAtom
)
...
...
@@ -1479,21 +1481,18 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
if
(
target
==
clientTARGETS
)
{
Atom
xa_STRING
[
4
];
/* --- Order changed by dimbor (prevent sending COMPOUND_TEXT to client --- */
xa_STRING
[
0
]
=
XA_STRING
;
xa_STRING
[
1
]
=
clientUTF8_STRING
;
xa_STRING
[
2
]
=
clientTEXT
;
xa_STRING
[
3
]
=
clientCOMPOUND_TEXT
;
Atom
targets
[]
=
{
XA_STRING
,
clientUTF8_STRING
,
clientTEXT
,
clientCOMPOUND_TEXT
};
int
numTargets
=
4
;
ChangeWindowProperty
(
pWin
,
property
,
MakeAtom
(
"ATOM"
,
4
,
1
),
sizeof
(
Atom
)
*
8
,
PropModeReplace
,
4
,
&
xa_STRING
,
1
);
numTargets
,
&
targets
,
1
);
SendSelectionNotifyEventToClient
(
client
,
time
,
requestor
,
selection
,
target
,
property
);
...
...
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