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
f2d3eac8
Commit
f2d3eac8
authored
Jun 19, 2018
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jul 03, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Atoms.c: more debugging output
parent
ce83b566
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
29 additions
and
0 deletions
+29
-0
Atoms.c
nx-X11/programs/Xserver/hw/nxagent/Atoms.c
+29
-0
No files found.
nx-X11/programs/Xserver/hw/nxagent/Atoms.c
View file @
f2d3eac8
...
@@ -678,18 +678,31 @@ Atom nxagentLocalToRemoteAtom(Atom local)
...
@@ -678,18 +678,31 @@ Atom nxagentLocalToRemoteAtom(Atom local)
const
char
*
string
;
const
char
*
string
;
Atom
remote
;
Atom
remote
;
#ifdef TEST
fprintf
(
stderr
,
"%s: entering
\n
"
,
__func__
);
#endif
if
(
!
ValidAtom
(
local
))
if
(
!
ValidAtom
(
local
))
{
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: local [%d] is no valid - returning None
\n
"
,
__func__
,
remote
);
#endif
return
None
;
return
None
;
}
}
if
(
local
<=
XA_LAST_PREDEFINED
)
if
(
local
<=
XA_LAST_PREDEFINED
)
{
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: local [%d] is < XA_LAST_PREDEFINED [%d]
\n
"
,
__func__
,
local
,
XA_LAST_PREDEFINED
);
#endif
return
local
;
return
local
;
}
}
if
((
current
=
nxagentFindAtomByLocalValue
(
local
)))
if
((
current
=
nxagentFindAtomByLocalValue
(
local
)))
{
{
#ifdef TEST
fprintf
(
stderr
,
"%s: local [%d] -> remote [%d]
\n
"
,
__func__
,
local
,
current
->
remote
);
#endif
return
current
->
remote
;
return
current
->
remote
;
}
}
...
@@ -708,6 +721,10 @@ Atom nxagentLocalToRemoteAtom(Atom local)
...
@@ -708,6 +721,10 @@ Atom nxagentLocalToRemoteAtom(Atom local)
nxagentWriteAtom
(
local
,
remote
,
string
,
True
);
nxagentWriteAtom
(
local
,
remote
,
string
,
True
);
#ifdef TEST
fprintf
(
stderr
,
"%s: local [%d] -> remote [%d (%s)]
\n
"
,
__func__
,
local
,
remote
,
string
);
#endif
return
remote
;
return
remote
;
}
}
...
@@ -719,11 +736,17 @@ Atom nxagentRemoteToLocalAtom(Atom remote)
...
@@ -719,11 +736,17 @@ Atom nxagentRemoteToLocalAtom(Atom remote)
if
(
remote
==
None
||
remote
==
BAD_RESOURCE
)
if
(
remote
==
None
||
remote
==
BAD_RESOURCE
)
{
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: remote [%d] is None or BAD_RESOURCE
\n
"
,
__func__
,
remote
);
#endif
return
None
;
return
None
;
}
}
if
(
remote
<=
XA_LAST_PREDEFINED
)
if
(
remote
<=
XA_LAST_PREDEFINED
)
{
{
#ifdef DEBUG
fprintf
(
stderr
,
"%s: remote [%d] is <= XA_LAST_PREDEFINED [%d]
\n
"
,
__func__
,
remote
,
XA_LAST_PREDEFINED
);
#endif
return
remote
;
return
remote
;
}
}
...
@@ -747,6 +770,9 @@ Atom nxagentRemoteToLocalAtom(Atom remote)
...
@@ -747,6 +770,9 @@ Atom nxagentRemoteToLocalAtom(Atom remote)
}
}
}
}
#ifdef DEBUG
fprintf
(
stderr
,
"%s: remote [%d] -> local [%d]
\n
"
,
__func__
,
remote
,
current
->
local
);
#endif
return
current
->
local
;
return
current
->
local
;
}
}
...
@@ -765,6 +791,9 @@ Atom nxagentRemoteToLocalAtom(Atom remote)
...
@@ -765,6 +791,9 @@ Atom nxagentRemoteToLocalAtom(Atom remote)
nxagentWriteAtom
(
local
,
remote
,
string
,
True
);
nxagentWriteAtom
(
local
,
remote
,
string
,
True
);
#ifdef TEST
fprintf
(
stderr
,
"%s: remote [%d (%s)] -> local [%d]
\n
"
,
__func__
,
remote
,
string
,
local
);
#endif
XFree
(
string
);
XFree
(
string
);
return
local
;
return
local
;
...
...
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