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
d8a4f3be
Unverified
Commit
d8a4f3be
authored
Mar 07, 2017
by
Mihai Moldovan
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'uli42-pr/backup_null_rulesfile' into 3.6.x
Attributes GH PR #372:
https://github.com/ArcticaProject/nx-libs/pull/372
Fixes: ArcticaProject/nx-libs#371.
parents
c6f0e6b2
2794e674
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
21 additions
and
1 deletion
+21
-1
xkbInit.c
nx-X11/programs/Xserver/xkb/xkbInit.c
+21
-1
No files found.
nx-X11/programs/Xserver/xkb/xkbInit.c
View file @
d8a4f3be
...
...
@@ -92,7 +92,7 @@ typedef struct _SrvXkmInfo {
#define XKB_BIN_DIRECTORY XKB_BASE_DIRECTORY
#endif
#ifndef XKB_DFLT_RULES_FILE
#define XKB_DFLT_RULES_FILE "
rules
"
#define XKB_DFLT_RULES_FILE "
base
"
#endif
#ifndef XKB_DFLT_KB_LAYOUT
#define XKB_DFLT_KB_LAYOUT "us"
...
...
@@ -244,14 +244,34 @@ XkbSetRulesUsed(XkbRF_VarDefsPtr defs)
return
;
}
/**
* Set the default RMLVO for the next device to be initialised.
* If a parameter is NULL, the previous setting will be used. Use empty
* strings if you want to delete a previous setting.
*
* If @rulesFile is NULL and no previous @rulesFile has been set, the
* built-in default is chosen as default.
*/
void
XkbSetRulesDflts
(
char
*
rulesFile
,
char
*
model
,
char
*
layout
,
char
*
variant
,
char
*
options
)
{
if
(
!
rulesFile
&&
!
XkbRulesFile
)
{
LogMessage
(
X_WARNING
,
"[xkb] No rule given, and no previous rule "
"defined. Defaulting to '%s'.
\n
"
,
XKB_DFLT_RULES_FILE
);
rulesFile
=
XKB_DFLT_RULES_FILE
;
}
if
(
rulesFile
)
{
if
(
XkbRulesFile
)
_XkbFree
(
XkbRulesFile
);
XkbRulesFile
=
Xstrdup
(
rulesFile
);
rulesDefined
=
True
;
}
if
(
model
)
{
if
(
XkbModelDflt
)
_XkbFree
(
XkbModelDflt
);
...
...
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