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
d2c81156
Commit
d2c81156
authored
Mar 13, 2017
by
Ulrich Sibiller
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Keyboard.c: Introduce separate masks for Alt and Meta
Unclear why they have been merged at all.
parent
5595e3d1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
0 deletions
+8
-0
Keyboard.c
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
+8
-0
No files found.
nx-X11/programs/Xserver/hw/nxagent/Keyboard.c
View file @
d2c81156
...
...
@@ -202,6 +202,8 @@ extern char *nxagentKeyboard;
static
char
*
nxagentXkbGetRules
(
void
);
unsigned
int
nxagentAltMetaMask
;
unsigned
int
nxagentAltMask
;
unsigned
int
nxagentMetaMask
;
static
void
nxagentCheckAltMetaKeys
(
CARD8
,
int
);
...
...
@@ -788,6 +790,8 @@ N/A
#endif
/* #ifdef _XSERVER64 */
nxagentAltMetaMask
=
0
;
nxagentAltMask
=
0
;
nxagentMetaMask
=
0
;
for
(
i
=
0
;
i
<
256
;
i
++
)
modmap
[
i
]
=
0
;
...
...
@@ -1378,21 +1382,25 @@ void nxagentCheckAltMetaKeys(CARD8 keycode, int j)
if
(
keycode
==
XKeysymToKeycode
(
nxagentDisplay
,
XK_Meta_L
))
{
nxagentAltMetaMask
|=
1
<<
j
;
nxagentMetaMask
|=
1
<<
j
;
}
if
(
keycode
==
XKeysymToKeycode
(
nxagentDisplay
,
XK_Meta_R
))
{
nxagentAltMetaMask
|=
1
<<
j
;
nxagentMetaMask
|=
1
<<
j
;
}
if
(
keycode
==
XKeysymToKeycode
(
nxagentDisplay
,
XK_Alt_L
))
{
nxagentAltMetaMask
|=
1
<<
j
;
nxagentAltMask
|=
1
<<
j
;
}
if
(
keycode
==
XKeysymToKeycode
(
nxagentDisplay
,
XK_Alt_R
))
{
nxagentAltMetaMask
|=
1
<<
j
;
nxagentAltMask
|=
1
<<
j
;
}
}
...
...
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