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
e0b8f3ee
Commit
e0b8f3ee
authored
Oct 06, 2015
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Re-add -sync option back to nxagent to allow synchronous debugging of the nxagent DDX.
parent
81d92cd0
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
12 additions
and
0 deletions
+12
-0
Args.c
nx-X11/programs/Xserver/hw/nxagent/Args.c
+8
-0
Args.h
nx-X11/programs/Xserver/hw/nxagent/Args.h
+1
-0
Display.c
nx-X11/programs/Xserver/hw/nxagent/Display.c
+3
-0
No files found.
nx-X11/programs/Xserver/hw/nxagent/Args.c
View file @
e0b8f3ee
...
...
@@ -103,6 +103,7 @@ extern int _XGetBitsPerPixel(Display *dpy, int depth);
extern
char
dispatchExceptionAtReset
;
char
nxagentDisplayName
[
1024
];
Bool
nxagentSynchronize
=
False
;
char
nxagentShadowDisplayName
[
1024
]
=
{
0
};
...
...
@@ -374,6 +375,13 @@ int ddxProcessArgument(int argc, char *argv[], int i)
return
0
;
}
if
(
!
strcmp
(
argv
[
i
],
"-sync"
))
{
if
(
++
i
<
argc
)
{
nxagentSynchronize
=
True
;
return
1
;
}
}
if
(
!
strcmp
(
argv
[
i
],
"-full"
))
{
nxagentFullGeneration
=
True
;
return
1
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Args.h
View file @
e0b8f3ee
...
...
@@ -50,6 +50,7 @@ extern char nxagentShadowDisplayName[];
extern
char
nxagentWindowName
[];
extern
char
nxagentDialogName
[];
extern
Bool
nxagentSynchronize
;
extern
Bool
nxagentFullGeneration
;
extern
int
nxagentDefaultClass
;
extern
Bool
nxagentUserDefaultClass
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Display.c
View file @
e0b8f3ee
...
...
@@ -1217,6 +1217,9 @@ FIXME: The agent should never exit the program with a FatalError()
FatalError
(
"Unable to open display '%s'.
\n
"
,
nxagentDisplayName
);
}
if
(
nxagentSynchronize
)
XSynchronize
(
nxagentDisplay
,
True
);
nxagentXConnectionNumber
=
XConnectionNumber
(
nxagentDisplay
);
#ifdef TEST
...
...
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