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
fac36b24
Commit
fac36b24
authored
May 08, 2019
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nxagent: make nxagentX2go a Boolean
parent
1b9d735b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
10 deletions
+10
-10
Init.c
nx-X11/programs/Xserver/hw/nxagent/Init.c
+7
-7
Keyboard.c
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+3
-3
No files found.
nx-X11/programs/Xserver/hw/nxagent/Init.c
View file @
fac36b24
...
...
@@ -183,13 +183,13 @@ int nxagentSaveUnder;
int
nxagentDoFullGeneration
=
1
;
/*
*
1 if agent
running as X2goAgent
*
0 if NX
Agent
*
True if agent is
running as X2goAgent
*
False if agent is running as NX
Agent
*/
int
nxagentX2go
;
Bool
nxagentX2go
;
/*
* Check
ing
if agent is x2go agent
* Check if agent is x2go agent
*/
void
checkX2goAgent
(
void
)
...
...
@@ -200,13 +200,13 @@ void checkX2goAgent(void)
fprintf
(
stderr
,
"%s: nxagentProgName [%s]
\n
"
,
__func__
,
nxagentProgName
);
#endif
if
(
strcasecmp
(
nxagentProgName
,
"x2goagent"
)
==
0
)
if
(
strcasecmp
(
nxagentProgName
,
"x2goagent"
)
==
0
)
{
fprintf
(
stderr
,
"
\n
running as X2Go Agent
\n
"
);
nxagentX2go
=
1
;
nxagentX2go
=
True
;
}
else
nxagentX2go
=
0
;
nxagentX2go
=
False
;
}
...
...
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
View file @
fac36b24
...
...
@@ -756,7 +756,7 @@ XkbError:
fprintf
(
stderr
,
"nxagentKeyboardProc: nxagentKeyboard is [%s].
\n
"
,
nxagentKeyboard
?
nxagentKeyboard
:
"NULL"
);
#endif
if
(
nxagentX2go
==
1
&&
nxagentKeyboard
&&
(
strcmp
(
nxagentKeyboard
,
"null/null"
)
==
0
))
if
(
nxagentX2go
&&
nxagentKeyboard
&&
(
strcmp
(
nxagentKeyboard
,
"null/null"
)
==
0
))
{
#ifdef TEST
fprintf
(
stderr
,
"%s: changing nxagentKeyboard from [null/null] to [clone].
\n
"
,
__func__
);
...
...
@@ -874,7 +874,7 @@ XkbError:
* method for switching that off is the creation of a dir
* instead of a file.
*/
if
(
nxagentX2go
==
1
)
if
(
nxagentX2go
)
{
nxagentWriteKeyboardDir
();
}
...
...
@@ -894,7 +894,7 @@ XkbError:
* know about that yet. Once x2go starts using clone
* we can drop this here.
*/
if
(
nxagentX2go
==
1
)
if
(
nxagentX2go
)
{
nxagentWriteKeyboardFile
(
nxagentRemoteRules
,
nxagentRemoteModel
,
nxagentRemoteLayout
,
nxagentRemoteVariant
,
nxagentRemoteOptions
);
}
...
...
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