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
8793e362
Commit
8793e362
authored
Oct 25, 2016
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Improve DEBUG/TEST output regarding keyboard stuff
parent
e3ac55bc
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
39 additions
and
14 deletions
+39
-14
Keyboard.c
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+37
-12
ddxLoad.c
nx-X11/programs/Xserver/xkb/ddxLoad.c
+2
-2
No files found.
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
View file @
8793e362
...
...
@@ -477,6 +477,11 @@ CARD8 nxagentConvertKeycode(CARD8 k)
{
if
(
nxagentKeycodeConversion
!=
0
)
{
#ifdef DEBUG
if
(
k
!=
nxagentConvertedKeycodes
[
k
])
fprintf
(
stderr
,
"nxagentConvertKeycode: converting keycode [%d] to [%d]
\n
"
,
k
,
nxagentConvertedKeycodes
[
k
]);
#endif
return
nxagentConvertedKeycodes
[
k
];
}
else
...
...
@@ -501,10 +506,10 @@ static void nxagentCheckXkbBaseDirectory(void)
#ifdef TEST
fprintf
(
stderr
,
"nxagentCheckXkbBaseDirectory: "
"Before calling _NXGetXkbBasePath
.
\n
"
);
"Before calling _NXGetXkbBasePath
:
\n
"
);
fprintf
(
stderr
,
"nxagentCheckXkbBaseDirectory: "
"XkbBaseDirectory varible [%s].
\n
"
,
"XkbBaseDirectory vari
a
ble [%s].
\n
"
,
XkbBaseDirectory
);
#endif
...
...
@@ -512,10 +517,10 @@ static void nxagentCheckXkbBaseDirectory(void)
#ifdef TEST
fprintf
(
stderr
,
"nxagentCheckXkbBaseDirectory: "
"After calling _NXGetXkbBasePath
.
\n
"
);
"After calling _NXGetXkbBasePath
:
\n
"
);
fprintf
(
stderr
,
"nxagentCheckXkbBaseDirectory: "
"XkbBaseDirectory varible [%s].
\n
"
,
"XkbBaseDirectory vari
a
ble [%s].
\n
"
,
XkbBaseDirectory
);
#endif
...
...
@@ -877,6 +882,10 @@ XkbError:
fprintf
(
stderr
,
"nxagentKeyboardProc: Using XKB extension.
\n
"
);
#endif
#ifdef TEST
fprintf
(
stderr
,
"nxagentKeyboardProc: nxagentKeyboard is [%s].
\n
"
,
nxagentKeyboard
?
nxagentKeyboard
:
"NULL"
);
#endif
memset
(
&
names
,
0
,
sizeof
(
XkbComponentNamesRec
));
rules
=
nxagentXkbGetRules
();
...
...
@@ -988,6 +997,11 @@ XkbError:
}
fprintf
(
stderr
,
"nxagentKeyboardProc: Going to set rules and init device.
\n
"
);
#endif
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentKeyboardProc: Going to set rules and init device: "
"[rules='%s',model='%s',layout='%s',variants='%s',options='%s'].
\n
"
,
rules
,
model
,
layout
,
variants
,
options
);
#endif
XkbSetRulesDflts
(
rules
,
model
,
layout
,
variants
,
options
);
XkbInitKeyboardDeviceStruct
((
void
*
)
pDev
,
&
names
,
&
keySyms
,
modmap
,
...
...
@@ -1072,12 +1086,13 @@ XkbError:
else
{
#ifdef TEST
fprintf
(
stderr
,
"nxagentKeyboardProc: No config file.
\n
"
);
#endif
#ifdef TEST
fprintf
(
stderr
,
"nxagentKeyboardProc: No config file, going to set rules and init device.
\n
"
);
#endif
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentKeyboardProc: Going to set rules and init device: "
"[rules='%s',model='%s',layout='%s',variants='%s',options='%s'].
\n
"
,
rules
,
model
,
layout
,
variants
,
options
);
#endif
XkbSetRulesDflts
(
rules
,
model
,
layout
,
variants
,
options
);
XkbInitKeyboardDeviceStruct
((
void
*
)
pDev
,
&
names
,
&
keySyms
,
modmap
,
...
...
@@ -1097,6 +1112,11 @@ XkbError:
#ifdef TEST
fprintf
(
stderr
,
"nxagentKeyboardProc: Going to set rules and init device.
\n
"
);
#endif
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentKeyboardProc: Going to set rules and init device: "
"[rules='%s',model='%s',layout='%s',variants='%s',options='%s'].
\n
"
,
rules
,
model
,
layout
,
variants
,
options
);
#endif
XkbSetRulesDflts
(
rules
,
model
,
layout
,
variants
,
options
);
XkbInitKeyboardDeviceStruct
((
void
*
)
pDev
,
&
names
,
&
keySyms
,
modmap
,
...
...
@@ -1402,8 +1422,8 @@ void nxagentCheckRemoteKeycodes()
nxagentNumLockKeycode
=
XKeysymToKeycode
(
nxagentDisplay
,
XK_Num_Lock
);
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentCheckRemoteKeycodes: Remote
CapsLock keycode
"
"is
[%d] NumLock [%d].
\n
"
,
nxagentCapsLockKeycode
,
fprintf
(
stderr
,
"nxagentCheckRemoteKeycodes: Remote
keycodes: CapsLock
"
"
[%d] NumLock [%d].
\n
"
,
nxagentCapsLockKeycode
,
nxagentNumLockKeycode
);
#endif
}
...
...
@@ -1805,8 +1825,8 @@ void nxagentKeycodeConversionSetup(void)
if
(
drulesLen
!=
0
&&
drules
!=
NULL
&&
dmodel
!=
NULL
)
{
fprintf
(
stderr
,
"nxagentKeycodeConversionSetup: "
"Remote: [%s,%s,%s,%s,%s].
\n
"
,
drules
,
dmodel
,
dlayout
,
dvariant
,
doptions
);
"Remote: [rules='%s',model='%s',layout='%s',variant='%s',options='%s'].
\n
"
,
d
rules
,
dmodel
,
dlayout
,
d
variant
,
doptions
);
}
else
{
...
...
@@ -1862,6 +1882,11 @@ void nxagentKeycodeConversionSetup(void)
(
strcmp
(
drules
,
"evdev"
)
==
0
||
strcmp
(
dmodel
,
"evdev"
)
==
0
))
{
#ifdef DEBUG
fprintf
(
stderr
,
"nxagentKeycodeConversionSetup: "
"Activating KeyCode conversion.
\n
"
);
#endif
nxagentKeycodeConversion
=
1
;
}
...
...
nx-X11/programs/Xserver/xkb/ddxLoad.c
View file @
8793e362
...
...
@@ -223,8 +223,8 @@ static int NXVerifyXkbBaseDirectory(const char *dirPath)
{
#ifdef TEST
fprintf
(
stderr
,
"NXVerifyXkbBaseDirectory:
Can't find the keymap.dir file [%s]
.
\n
"
,
rulesBaseFilePath
);
fprintf
(
stderr
,
"NXVerifyXkbBaseDirectory:
Xkb Base Directory [%s] is not valid (can't find file [%s])
.
\n
"
,
dirPath
,
rulesBaseFilePath
);
#endif
free
(
rulesBaseFilePath
);
...
...
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