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
64605a8c
Commit
64605a8c
authored
Jul 19, 2004
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11vnc: ignore keysyms >4 for a keycode, add lastmod to -help, -version
parent
57234c52
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
25 additions
and
6 deletions
+25
-6
ChangeLog
x11vnc/ChangeLog
+4
-0
x11vnc.c
x11vnc/x11vnc.c
+21
-6
No files found.
x11vnc/ChangeLog
View file @
64605a8c
2004-07-19 Karl Runge <runge@karlrunge.com>
* ignore keysyms 5-8 for keycode keymapping.
* help to stdout for easy paging, add lastmod to help and -version.
2004-07-15 Karl Runge <runge@karlrunge.com>
* make "modtweak" the default, disable with -nomodtweak. this
corrects ghost "< >" key on pc104 us in XFree86.
...
...
x11vnc/x11vnc.c
View file @
64605a8c
...
...
@@ -156,7 +156,7 @@
#endif
/* date +'"lastmod: %Y-%m-%d";' */
char
lastmod
[]
=
"lastmod: 2004-07-1
5
"
;
char
lastmod
[]
=
"lastmod: 2004-07-1
9
"
;
/* X display info */
Display
*
dpy
=
0
;
...
...
@@ -1970,6 +1970,14 @@ void initialize_modtweak(void) {
}
for
(
i
=
minkey
;
i
<=
maxkey
;
i
++
)
{
for
(
j
=
0
;
j
<
syms_per_keycode
;
j
++
)
{
if
(
j
>=
4
)
{
/*
* Something wacky in the keymapping.
* Ignore these non Shift/AltGr chords
* for now...
*/
continue
;
}
keysym
=
keymap
[
(
i
-
minkey
)
*
syms_per_keycode
+
j
];
if
(
keysym
>=
' '
&&
keysym
<
0x100
&&
i
==
XKeysymToKeycode
(
dpy
,
keysym
)
)
{
...
...
@@ -1995,13 +2003,13 @@ static void tweak_mod(signed char mod, rfbBool down) {
if
(
mod
<
0
)
{
if
(
debug_keyboard
)
{
rfbLog
(
"tweak_mod: Skip: down=%d mod=0x%x
\n
"
,
down
,
rfbLog
(
"tweak_mod: Skip: down=%d
j-
mod=0x%x
\n
"
,
down
,
(
int
)
mod
);
}
return
;
}
if
(
debug_keyboard
)
{
rfbLog
(
"tweak_mod: Start: down=%d mod=0x%x mod_state=0x%x"
rfbLog
(
"tweak_mod: Start: down=%d
j-
mod=0x%x mod_state=0x%x"
" is_shift=%d
\n
"
,
down
,
(
int
)
mod
,
(
int
)
mod_state
,
is_shift
);
}
...
...
@@ -2026,7 +2034,7 @@ static void tweak_mod(signed char mod, rfbBool down) {
}
X_UNLOCK
;
if
(
debug_keyboard
)
{
rfbLog
(
"tweak_mod: Finish: down=%d mod=0x%x mod_state=0x%x"
rfbLog
(
"tweak_mod: Finish: down=%d
j-
mod=0x%x mod_state=0x%x"
" is_shift=%d
\n
"
,
down
,
(
int
)
mod
,
(
int
)
mod_state
,
is_shift
);
}
...
...
@@ -6761,7 +6769,7 @@ static void watch_loop(void) {
static
void
print_help
(
void
)
{
char
help
[]
=
"
\n
"
"x11vnc: allow VNC connections to real X11 displays.
\n
"
"x11vnc: allow VNC connections to real X11 displays.
%s
\n
"
"
\n
"
"Typical usage is:
\n
"
"
\n
"
...
...
@@ -6952,6 +6960,8 @@ static void print_help(void) {
" to the terminal. Same as -logfile.
\n
"
"-rc filename Use
\"
filename
\"
instead of $HOME/.x11vncrc for rc file.
\n
"
"-norc Do not process any .x11vncrc file for options.
\n
"
"-h, -help Print this help text.
\n
"
"-V, -version Print program version (last modification date).
\n
"
"
\n
"
"-q Be quiet by printing less informational output to
\n
"
" stderr. Same as -quiet.
\n
"
...
...
@@ -7073,7 +7083,9 @@ static void print_help(void) {
"These options are passed to libvncserver:
\n
"
"
\n
"
;
fprintf
(
stderr
,
help
,
/* have both our help and rfbUsage to stdout for more(1), etc. */
dup2
(
1
,
2
);
fprintf
(
stderr
,
help
,
lastmod
,
view_only
?
"on"
:
"off"
,
shared
?
"on"
:
"off"
,
use_modifier_tweak
?
"on"
:
"off"
,
...
...
@@ -7572,6 +7584,9 @@ int main(int argc, char* argv[]) {
}
else
if
(
!
strcmp
(
arg
,
"-h"
)
||
!
strcmp
(
arg
,
"-help"
)
||
!
strcmp
(
arg
,
"-?"
))
{
print_help
();
}
else
if
(
!
strcmp
(
arg
,
"-V"
)
||
!
strcmp
(
arg
,
"-version"
))
{
fprintf
(
stderr
,
"x11vnc: %s
\n
"
,
lastmod
);
exit
(
0
);
}
else
if
(
!
strcmp
(
arg
,
"-o"
)
||
!
strcmp
(
arg
,
"-logfile"
))
{
CHECK_ARGC
logfile
=
argv
[
++
i
];
...
...
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