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
c37c47ac
Commit
c37c47ac
authored
Dec 06, 2017
by
Ulrich Sibiller
Committed by
Mike Gabriel
Dec 14, 2017
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keyboard.c: Improve TEST output
parent
7610c0f1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
16 additions
and
1 deletion
+16
-1
Keyboard.c
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+16
-1
No files found.
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
View file @
c37c47ac
...
...
@@ -556,11 +556,17 @@ static char *nxagentXkbGetRules()
strcpy
(
path
,
XkbBaseDirectory
);
strcat
(
path
,
"/rules/"
);
strcat
(
path
,
XKB_DFLT_RULES_FILE
);
#ifdef TEST
fprintf
(
stderr
,
"nxagentXkbGetRules: checking rules file [%s]
\n
"
,
path
);
#endif
ret
=
stat
(
path
,
&
buf
);
if
(
ret
==
0
)
{
free
(
path
);
#ifdef TEST
fprintf
(
stderr
,
"nxagentXkbGetRules: returning default rules file [%s]
\n
"
,
XKB_DFLT_RULES_FILE
);
#endif
return
XKB_DFLT_RULES_FILE
;
}
...
...
@@ -571,11 +577,17 @@ static char *nxagentXkbGetRules()
strcpy
(
path
,
XkbBaseDirectory
);
strcat
(
path
,
"/rules/"
);
strcat
(
path
,
XKB_ALTS_RULES_FILE
);
#ifdef TEST
fprintf
(
stderr
,
"nxagentXkbGetRules: checking rules file [%s]
\n
"
,
path
);
#endif
ret
=
stat
(
path
,
&
buf
);
if
(
ret
==
0
)
{
free
(
path
);
#ifdef TEST
fprintf
(
stderr
,
"nxagentXkbGetRules: returning alternative rules file [%s]
\n
"
,
XKB_ALTS_RULES_FILE
);
#endif
return
XKB_ALTS_RULES_FILE
;
}
...
...
@@ -584,6 +596,9 @@ static char *nxagentXkbGetRules()
#endif
free
(
path
);
#ifdef TEST
fprintf
(
stderr
,
"nxagentXkbGetRules: returning default rules file [%s]
\n
"
,
XKB_DFLT_RULES_FILE
);
#endif
return
XKB_DFLT_RULES_FILE
;
}
...
...
@@ -951,7 +966,7 @@ XkbError:
options
=
XKB_DFLT_KB_OPTIONS
;
#ifdef TEST
fprintf
(
stderr
,
"nxagentKeyboardProc: XkbInitialMap [%s]
\n
"
,
XkbInitialMap
?
XkbInitialMap
:
"NULL"
);
fprintf
(
stderr
,
"nxagentKeyboardProc: XkbInitialMap
(option -xkbmap) is
[%s]
\n
"
,
XkbInitialMap
?
XkbInitialMap
:
"NULL"
);
#endif
if
(
XkbInitialMap
)
{
...
...
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