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
eb07ed57
Commit
eb07ed57
authored
Jul 05, 2018
by
Ulrich Sibiller
Committed by
Mike Gabriel
Nov 09, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keyboard.c: do not define own RLMVO defaults
use the ones from xkb
parent
11a1f31d
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
94 deletions
+5
-94
Keyboard.c
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+5
-94
No files found.
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
View file @
eb07ed57
...
@@ -135,25 +135,6 @@ extern Status XkbGetControls(
...
@@ -135,25 +135,6 @@ extern Status XkbGetControls(
#endif
#endif
);
);
#ifndef XKB_DFLT_RULES_FILE
#define XKB_DFLT_RULES_FILE "base"
#endif
#ifndef XKB_ALTS_RULES_FILE
#define XKB_ALTS_RULES_FILE "xorg"
#endif
#ifndef XKB_DFLT_KB_LAYOUT
#define XKB_DFLT_KB_LAYOUT "us"
#endif
#ifndef XKB_DFLT_KB_MODEL
#define XKB_DFLT_KB_MODEL "pc102"
#endif
#ifndef XKB_DFLT_KB_VARIANT
#define XKB_DFLT_KB_VARIANT NULL
#endif
#ifndef XKB_DFLT_KB_OPTIONS
#define XKB_DFLT_KB_OPTIONS NULL
#endif
extern
int
XkbDfltRepeatDelay
;
extern
int
XkbDfltRepeatDelay
;
extern
int
XkbDfltRepeatInterval
;
extern
int
XkbDfltRepeatInterval
;
...
@@ -180,8 +161,6 @@ XkbWrapperRec nxagentXkbWrapper;
...
@@ -180,8 +161,6 @@ XkbWrapperRec nxagentXkbWrapper;
extern
char
*
nxagentKeyboard
;
extern
char
*
nxagentKeyboard
;
static
char
*
nxagentXkbGetRules
(
void
);
unsigned
int
nxagentAltMetaMask
;
unsigned
int
nxagentAltMetaMask
;
unsigned
int
nxagentAltMask
;
unsigned
int
nxagentAltMask
;
unsigned
int
nxagentMetaMask
;
unsigned
int
nxagentMetaMask
;
...
@@ -481,73 +460,6 @@ static int nxagentRestoreKeyboardDeviceData(DeviceIntPtr devBackup, DeviceIntPtr
...
@@ -481,73 +460,6 @@ static int nxagentRestoreKeyboardDeviceData(DeviceIntPtr devBackup, DeviceIntPtr
static
int
nxagentFreeKeyboardDeviceData
(
DeviceIntPtr
dev
);
static
int
nxagentFreeKeyboardDeviceData
(
DeviceIntPtr
dev
);
static
char
*
nxagentXkbGetRules
()
{
int
ret
;
char
*
path
;
struct
stat
buf
;
#ifdef TEST
fprintf
(
stderr
,
"nxagentXkbGetRules: XkbBaseDirectory [%s].
\n
"
,
XkbBaseDirectory
);
#endif
if
(
-
1
==
asprintf
(
&
path
,
"%s/rules/%s"
,
XkbBaseDirectory
,
XKB_DFLT_RULES_FILE
))
{
FatalError
(
"nxagentXkbGetRules: malloc failed."
);
}
#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
;
}
#ifdef TEST
fprintf
(
stderr
,
"nxagentXkbGetRules: WARNING! Failed to stat file [%s]: %s.
\n
"
,
path
,
strerror
(
ret
));
#endif
free
(
path
);
path
=
NULL
;
if
(
-
1
==
asprintf
(
&
path
,
"%s/rules/%s"
,
XkbBaseDirectory
,
XKB_ALTS_RULES_FILE
))
{
FatalError
(
"nxagentXkbGetRules: malloc failed."
);
}
#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
;
}
#ifdef WARNING
fprintf
(
stderr
,
"nxagentXkbGetRules: WARNING! Failed to stat file [%s]: %s.
\n
"
,
path
,
strerror
(
ret
));
#endif
free
(
path
);
#ifdef TEST
fprintf
(
stderr
,
"nxagentXkbGetRules: returning default rules file [%s]
\n
"
,
XKB_DFLT_RULES_FILE
);
#endif
return
XKB_DFLT_RULES_FILE
;
}
void
nxagentBell
(
int
volume
,
DeviceIntPtr
pDev
,
void
*
ctrl
,
int
cls
)
void
nxagentBell
(
int
volume
,
DeviceIntPtr
pDev
,
void
*
ctrl
,
int
cls
)
{
{
XBell
(
nxagentDisplay
,
volume
);
XBell
(
nxagentDisplay
,
volume
);
...
@@ -843,8 +755,7 @@ XkbError:
...
@@ -843,8 +755,7 @@ XkbError:
fprintf
(
stderr
,
"nxagentKeyboardProc: nxagentKeyboard is [%s].
\n
"
,
nxagentKeyboard
?
nxagentKeyboard
:
"NULL"
);
fprintf
(
stderr
,
"nxagentKeyboardProc: nxagentKeyboard is [%s].
\n
"
,
nxagentKeyboard
?
nxagentKeyboard
:
"NULL"
);
#endif
#endif
rules
=
NULL
;
/* use xkb default */
rules
=
nxagentXkbGetRules
();
/*
/*
from nxagent changelog:
from nxagent changelog:
...
@@ -901,8 +812,8 @@ XkbError:
...
@@ -901,8 +812,8 @@ XkbError:
}
}
else
else
{
{
layout
=
XKB_DFLT_KB_LAYOUT
;
layout
=
NULL
;
/* use xkb default */
model
=
XKB_DFLT_KB_MODEL
;
model
=
NULL
;
/* use xkb default */
#ifdef TEST
#ifdef TEST
fprintf
(
stderr
,
"nxagentKeyboardProc: Using default keyboard: model [%s] layout [%s].
\n
"
,
fprintf
(
stderr
,
"nxagentKeyboardProc: Using default keyboard: model [%s] layout [%s].
\n
"
,
...
@@ -910,8 +821,8 @@ XkbError:
...
@@ -910,8 +821,8 @@ XkbError:
#endif
#endif
}
}
variants
=
XKB_DFLT_KB_VARIANT
;
variants
=
NULL
;
/* use xkb default */
options
=
XKB_DFLT_KB_OPTIONS
;
options
=
NULL
;
/* use xkb default */
#ifdef TEST
#ifdef TEST
fprintf
(
stderr
,
"nxagentKeyboardProc: Init XKB extension.
\n
"
);
fprintf
(
stderr
,
"nxagentKeyboardProc: Init XKB extension.
\n
"
);
...
...
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