Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
L
libvncserver
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
rasky
libvncserver
Commits
49c2d82d
Commit
49c2d82d
authored
Dec 25, 2002
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
strange, but standard X11 behaviour from Sun keymappings...
parent
ba2029e9
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
x11vnc.c
contrib/x11vnc.c
+19
-0
No files found.
contrib/x11vnc.c
View file @
49c2d82d
...
@@ -238,6 +238,25 @@ void initialize_keycodes() {
...
@@ -238,6 +238,25 @@ void initialize_keycodes() {
keymap
=
XGetKeyboardMapping
(
dpy
,
minkey
,
(
maxkey
-
minkey
+
1
),
keymap
=
XGetKeyboardMapping
(
dpy
,
minkey
,
(
maxkey
-
minkey
+
1
),
&
syms_per_keycode
);
&
syms_per_keycode
);
/* handle alphabetic char with only one keysym (no upper + lower) */
for
(
i
=
minkey
;
i
<=
maxkey
;
i
++
)
{
X_KeySym
lower
,
upper
;
/* 2nd one */
key
=
keymap
[(
i
-
minkey
)
*
syms_per_keycode
+
1
];
if
(
key
!=
NoSymbol
)
{
continue
;
}
/* 1st one */
key
=
keymap
[(
i
-
minkey
)
*
syms_per_keycode
+
0
];
if
(
key
==
NoSymbol
)
{
continue
;
}
XConvertCase
(
key
,
&
lower
,
&
upper
);
if
(
lower
!=
upper
)
{
keymap
[(
i
-
minkey
)
*
syms_per_keycode
+
0
]
=
lower
;
keymap
[(
i
-
minkey
)
*
syms_per_keycode
+
1
]
=
upper
;
}
}
for
(
i
=
minkey
;
i
<=
maxkey
;
i
++
)
{
for
(
i
=
minkey
;
i
<=
maxkey
;
i
++
)
{
for
(
j
=
0
;
j
<
syms_per_keycode
;
j
++
)
{
for
(
j
=
0
;
j
<
syms_per_keycode
;
j
++
)
{
key
=
keymap
[
(
i
-
minkey
)
*
syms_per_keycode
+
j
];
key
=
keymap
[
(
i
-
minkey
)
*
syms_per_keycode
+
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