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
a59020b1
Commit
a59020b1
authored
Jan 03, 2020
by
Ulrich Sibiller
Committed by
Mike Gabriel
Jan 05, 2020
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nxagent: central check for keyboard clone mode
parent
69443952
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
18 deletions
+14
-18
Args.c
nx-X11/programs/Xserver/hw/nxagent/Args.c
+14
-1
Keyboard.c
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+0
-8
Reconnect.c
nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
+0
-9
No files found.
nx-X11/programs/Xserver/hw/nxagent/Args.c
View file @
a59020b1
...
...
@@ -687,7 +687,20 @@ int ddxProcessArgument(int argc, char *argv[], int i)
{
SAFE_free
(
nxagentKeyboard
);
nxagentKeyboard
=
strdup
(
argv
[
i
]);
if
(
nxagentX2go
&&
strcmp
(
argv
[
i
],
"null/null"
)
==
0
)
{
#ifdef TEST
fprintf
(
stderr
,
"%s: changing nxagentKeyboard from [null/null] to [clone].
\n
"
,
__func__
);
#endif
SAFE_free
(
nxagentKeyboard
);
nxagentKeyboard
=
strdup
(
"clone"
);
}
else
{
nxagentKeyboard
=
strdup
(
argv
[
i
]);
}
if
(
nxagentKeyboard
==
NULL
)
{
FatalError
(
"malloc failed"
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
View file @
a59020b1
...
...
@@ -553,14 +553,6 @@ XkbError:
fprintf
(
stderr
,
"%s: nxagentKeyboard is [%s].
\n
"
,
__func__
,
validateString
(
nxagentKeyboard
));
#endif
if
(
nxagentX2go
&&
nxagentKeyboard
&&
(
strcmp
(
nxagentKeyboard
,
"null/null"
)
==
0
))
{
#ifdef TEST
fprintf
(
stderr
,
"%s: changing nxagentKeyboard from [null/null] to [clone].
\n
"
,
__func__
);
#endif
SAFE_free
(
nxagentKeyboard
);
nxagentKeyboard
=
strdup
(
"clone"
);
}
/*
from nxagent changelog:
...
...
nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
View file @
a59020b1
...
...
@@ -458,15 +458,6 @@ Bool nxagentReconnectSession(void)
nxagentProcessOptions
(
nxagentOptionsFilenameOrString
);
if
(
nxagentKeyboard
&&
(
strcmp
(
nxagentKeyboard
,
"null/null"
)
==
0
))
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentReconnect: changing nxagentKeyboard from [null/null] to [clone].
\n
"
);
#endif
SAFE_free
(
nxagentKeyboard
);
nxagentKeyboard
=
strdup
(
"clone"
);
}
if
(
nxagentReconnectDisplay
(
reconnectLossyLevel
[
DISPLAY_STEP
])
==
0
)
{
...
...
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