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
a8c65ab6
Unverified
Commit
a8c65ab6
authored
Dec 19, 2018
by
Mike Gabriel
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/improve_keyboard2' into 3.6.x
Attributes GH PR #743:
https://github.com/ArcticaProject/nx-libs/pull/743
parents
ab3e1485
a70ec920
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
24 additions
and
7 deletions
+24
-7
Keyboard.c
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+0
-0
Keyboard.h
nx-X11/programs/Xserver/hw/nxagent/Keyboard.h
+2
-1
Reconnect.c
nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
+6
-2
nxagent.1
nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1
+16
-4
No files found.
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
View file @
a8c65ab6
This diff is collapsed.
Click to expand it.
nx-X11/programs/Xserver/hw/nxagent/Keyboard.h
View file @
a8c65ab6
...
@@ -117,8 +117,9 @@ void nxagentEnableXkbExtension(void);
...
@@ -117,8 +117,9 @@ void nxagentEnableXkbExtension(void);
void
nxagentTuneXkbWrapper
(
void
);
void
nxagentTuneXkbWrapper
(
void
);
void
nxagent
ResetKeycodeConversion
(
void
);
void
nxagent
KeycodeConversionSetup
(
void
);
Bool
nxagentGetRemoteXkbExtension
(
void
);
#endif
#endif
CARD8
nxagentConvertKeycode
(
CARD8
k
);
CARD8
nxagentConvertKeycode
(
CARD8
k
);
...
...
nx-X11/programs/Xserver/hw/nxagent/Reconnect.c
View file @
a8c65ab6
...
@@ -584,6 +584,9 @@ Bool nxagentReconnectSession(void)
...
@@ -584,6 +584,9 @@ Bool nxagentReconnectSession(void)
goto
nxagentReconnectError
;
goto
nxagentReconnectError
;
}
}
/* Update remote XKB information */
nxagentGetRemoteXkbExtension
();
/* if there's no keyboard definition in the options file
/* if there's no keyboard definition in the options file
restore the previous value. */
restore the previous value. */
#ifdef DEBUG
#ifdef DEBUG
...
@@ -598,7 +601,8 @@ Bool nxagentReconnectSession(void)
...
@@ -598,7 +601,8 @@ Bool nxagentReconnectSession(void)
if
(
nxagentOption
(
ResetKeyboardAtResume
)
==
1
&&
if
(
nxagentOption
(
ResetKeyboardAtResume
)
==
1
&&
(
nxagentKeyboard
==
NULL
||
nxagentOldKeyboard
==
NULL
||
(
nxagentKeyboard
==
NULL
||
nxagentOldKeyboard
==
NULL
||
strcmp
(
nxagentKeyboard
,
nxagentOldKeyboard
)
!=
0
||
strcmp
(
nxagentKeyboard
,
nxagentOldKeyboard
)
!=
0
||
strcmp
(
nxagentKeyboard
,
"query"
)
==
0
))
strcmp
(
nxagentKeyboard
,
"query"
)
==
0
||
strcmp
(
nxagentKeyboard
,
"clone"
)
==
0
))
{
{
if
(
nxagentResetKeyboard
()
==
0
)
if
(
nxagentResetKeyboard
()
==
0
)
{
{
...
@@ -616,7 +620,7 @@ Bool nxagentReconnectSession(void)
...
@@ -616,7 +620,7 @@ Bool nxagentReconnectSession(void)
}
}
else
else
{
{
nxagent
ResetKeycodeConversion
();
nxagent
KeycodeConversionSetup
();
}
}
nxagentXkbState
.
Initialized
=
0
;
nxagentXkbState
.
Initialized
=
0
;
...
...
nx-X11/programs/Xserver/hw/nxagent/man/nxagent.1
View file @
a8c65ab6
...
@@ -525,8 +525,8 @@ don't reset keyboard device if the session is resumed
...
@@ -525,8 +525,8 @@ don't reset keyboard device if the session is resumed
this is only relevant if you also specify \-keyboard=query. In that
this is only relevant if you also specify \-keyboard=query. In that
case \fBnxagent\fR will lock the keyboard settings and clients will
case \fBnxagent\fR will lock the keyboard settings and clients will
get an error when trying to change keyboard settings via
get an error when trying to change keyboard settings via
XKEYBOARD. With \-noxkblock the lock is not applied and clients
can
XKEYBOARD. With \-noxkblock the lock is not applied and clients
are
change the keyboard settings through XKEYBOARD.
allowed
change the keyboard settings through XKEYBOARD.
.TP 8
.TP 8
.B \-tile WxH
.B \-tile WxH
size of image tiles (minimum allowed: 32x32)
size of image tiles (minimum allowed: 32x32)
...
@@ -603,7 +603,7 @@ start or resume a session in fullscreen mode (default: off)
...
@@ -603,7 +603,7 @@ start or resume a session in fullscreen mode (default: off)
.TP 8
.TP 8
.B keyboard=<string> or kbtype=<string>
.B keyboard=<string> or kbtype=<string>
.BR query |
<model>/<layout
>
.BR query |
clone | <model>/<layout> | rmlvo/<rules>#<model>#<layout>#<variant>#<options
>
.RS 8
.RS 8
.TP 8
.TP 8
...
@@ -617,10 +617,22 @@ this platform. Note that in this case XKEYBOARD will always report
...
@@ -617,10 +617,22 @@ this platform. Note that in this case XKEYBOARD will always report
the default layout which will most likely not match the experienced
the default layout which will most likely not match the experienced
settings.
settings.
.TP 8
.TP 8
.I clone
ask the real X server for the keyboard settings using XKEYBOARD
protocol functions and clone them. This is the recommended setting. For
compatibility reasons it is not the default.
.TP 8
.I <model>/<layout>
.I <model>/<layout>
use the given model and layout. You can not modify keyboard rules,
use the given model and layout. You can not modify keyboard rules,
variant or options. Instead preset values are used. These are
variant or options
this way
. Instead preset values are used. These are
\fIbase\fR for rules and empty strings for variant and options.
\fIbase\fR for rules and empty strings for variant and options.
.TP 8
.I rmlvo/<rules>#<model>#<layout>#<variant>#<options>
configure the keyboard according to the rmlvo
(Rules+Model+Layout+Variant+Options) description given after the / and
separated by #. This can be used to fully pass the keyboard
configuration of \fBnxagent\fR right after the start. Example:
rmlvo/base#pc105#de,us#nodeadkeys#lv3:rwin_switch
.RE
.RE
.TP 8
.TP 8
...
...
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