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
6c751087
Commit
6c751087
authored
Feb 16, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
May 31, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Clipboard.c: improve some more debugging messages
parent
3881d147
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
20 additions
and
19 deletions
+20
-19
Clipboard.c
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
+20
-19
No files found.
nx-X11/programs/Xserver/hw/nxagent/Clipboard.c
View file @
6c751087
...
...
@@ -1234,7 +1234,7 @@ void nxagentCollectPropertyEvent(int resource)
if
(
ulReturnBytesLeft
==
0
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s:
A
borting selection notify procedure.
\n
"
,
__func__
);
fprintf
(
stderr
,
"%s:
data size is [0] - a
borting selection notify procedure.
\n
"
,
__func__
);
#endif
endTransfer
(
SELECTION_FAULT
);
...
...
@@ -1242,7 +1242,7 @@ void nxagentCollectPropertyEvent(int resource)
else
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: Got property size
from remote server.
\n
"
,
__func__
);
fprintf
(
stderr
,
"%s: Got property size
[%lu] from remote server.
\n
"
,
__func__
,
ulReturnBytesLeft
);
#endif
/*
...
...
@@ -1265,7 +1265,7 @@ void nxagentCollectPropertyEvent(int resource)
if
(
ulReturnBytesLeft
!=
0
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s:
Aborting selection notify procedure.
\n
"
,
__func__
);
fprintf
(
stderr
,
"%s:
not all content could be retrieved - [%lu] bytes left - aborting selection notify procedure.
\n
"
,
__func__
,
ulReturnBytesLeft
);
#endif
endTransfer
(
SELECTION_FAULT
);
...
...
@@ -1273,7 +1273,7 @@ void nxagentCollectPropertyEvent(int resource)
else
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: Got property content from remote server.
\n
"
,
__func__
);
fprintf
(
stderr
,
"%s: Got property content from remote server.
size [%lu] bytes.
\n
"
,
__func__
,
(
ulReturnItems
*
resultFormat
/
8
)
);
#endif
ChangeWindowProperty
(
lastClientWindowPtr
,
...
...
@@ -1930,31 +1930,32 @@ int nxagentConvertSelection(ClientPtr client, WindowPtr pWin, Atom selection,
* we only convert to either UTF8 or XA_STRING, despite accepting
* TEXT and COMPOUND_TEXT.
*/
XlibAtom
p
=
serverTransToAgentProperty
;
XlibAtom
t
;
char
*
pstr
=
"NX_CUT_BUFFER_SERVER"
;
const
char
*
tstr
;
if
(
target
==
clientUTF8_STRING
)
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: Sending XConvertSelection with target [%ld][%s], property [%ld][%s]
\n
"
,
__func__
,
serverUTF8_STRING
,
szAgentUTF8_STRING
,
serverTransToAgentProperty
,
"NX_CUT_BUFFER_SERVER"
);
#endif
XConvertSelection
(
nxagentDisplay
,
selection
,
serverUTF8_STRING
,
serverTransToAgentProperty
,
serverWindow
,
CurrentTime
);
t
=
serverUTF8_STRING
;
tstr
=
szAgentUTF8_STRING
;
}
else
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: Sending XConvertSelection with target [%d][%s], property [%ld][%s]
\n
"
,
__func__
,
XA_STRING
,
validateString
(
NameForAtom
(
XA_STRING
)),
serverTransToAgentProperty
,
"NX_CUT_BUFFER_SERVER"
);
#endif
XConvertSelection
(
nxagentDisplay
,
selection
,
XA_STRING
,
serverTransToAgentProperty
,
serverWindow
,
CurrentTime
);
t
=
XA_STRING
;
tstr
=
validateString
(
NameForAtom
(
XA_STRING
));
}
#ifdef DEBUG
fprintf
(
stderr
,
"%s: Sending XConvertSelection to real X server: requestor [0x%x] target [%ld][%s] property [%ld][%s] time [%ld]
\n
"
,
__func__
,
serverWindow
,
t
,
tstr
,
p
,
pstr
,
CurrentTime
);
#endif
XConvertSelection
(
nxagentDisplay
,
selection
,
t
,
p
,
serverWindow
,
CurrentTime
);
/* FIXME: check returncode of XConvertSelection */
#ifdef DEBUG
fprintf
(
stderr
,
"%s: Sent XConvertSelection with target [%s], property [%s]
\n
"
,
__func__
,
validateString
(
NameForAtom
(
target
)),
validateString
(
NameForAtom
(
property
)));
fprintf
(
stderr
,
"%s: Sent XConvertSelection with target [%s], property [%s]
\n
"
,
__func__
,
tstr
,
pstr
);
#endif
return
1
;
...
...
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