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
d5c9733b
You need to sign in or sign up before continuing.
Commit
d5c9733b
authored
Dec 03, 2018
by
Ulrich Sibiller
Committed by
Mike Gabriel
Dec 19, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
nxagent: simplify keycode conversion setup
parent
1d6c241d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
7 additions
and
16 deletions
+7
-16
Keyboard.c
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+5
-14
Keyboard.h
nx-X11/programs/Xserver/hw/nxagent/Keyboard.h
+1
-1
Reconnect.c
nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
+1
-1
No files found.
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
View file @
d5c9733b
...
...
@@ -1691,10 +1691,14 @@ void nxagentWriteKeyboardFile(char *rules, char *model, char *layout, char *vari
void
nxagentKeycodeConversionSetup
(
void
)
{
nxagentKeycodeConversion
=
False
;
if
(
nxagentXkbInfo
.
Opcode
==
-
1
)
return
;
if
(
nxagentOption
(
KeycodeConversion
)
==
KeycodeConversionOff
)
{
fprintf
(
stderr
,
"Info: Keycode conversion is off
\n
"
);
nxagentKeycodeConversion
=
False
;
}
else
if
(
nxagentOption
(
KeycodeConversion
)
==
KeycodeConversionOn
)
{
...
...
@@ -1721,23 +1725,10 @@ void nxagentKeycodeConversionSetup(void)
#endif
fprintf
(
stderr
,
"Info: Keycode conversion auto-determined as off
\n
"
);
nxagentKeycodeConversion
=
False
;
}
}
}
void
nxagentResetKeycodeConversion
(
void
)
{
if
(
nxagentXkbInfo
.
Opcode
!=
-
1
)
{
nxagentKeycodeConversionSetup
();
}
else
{
nxagentKeycodeConversion
=
False
;
}
}
Bool
nxagentGetRemoteXkbExtension
(
void
)
{
Bool
result
;
...
...
nx-X11/programs/Xserver/hw/nxagent/Keyboard.h
View file @
d5c9733b
...
...
@@ -117,7 +117,7 @@ void nxagentEnableXkbExtension(void);
void
nxagentTuneXkbWrapper
(
void
);
void
nxagent
ResetKeycodeConversion
(
void
);
void
nxagent
KeycodeConversionSetup
(
void
);
Bool
nxagentGetRemoteXkbExtension
(
void
);
#endif
...
...
nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
View file @
d5c9733b
...
...
@@ -620,7 +620,7 @@ Bool nxagentReconnectSession(void)
}
else
{
nxagent
ResetKeycodeConversion
();
nxagent
KeycodeConversionSetup
();
}
nxagentXkbState
.
Initialized
=
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