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
740fdfd0
Commit
740fdfd0
authored
Nov 25, 2001
by
dscho
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
init keyboard now takes correct display
parent
8c70b301
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
2 deletions
+1
-2
x11vnc.c
x11vnc.c
+1
-2
No files found.
x11vnc.c
View file @
740fdfd0
...
@@ -25,13 +25,11 @@ KeyCode keycodes[0x100],leftShiftCode,rightShiftCode,altGrCode;
...
@@ -25,13 +25,11 @@ KeyCode keycodes[0x100],leftShiftCode,rightShiftCode,altGrCode;
void
init_keycodes
()
void
init_keycodes
()
{
{
Display
*
dpy
;
KeySym
key
,
*
keymap
;
KeySym
key
,
*
keymap
;
int
i
,
j
,
minkey
,
maxkey
,
syms_per_keycode
;
int
i
,
j
,
minkey
,
maxkey
,
syms_per_keycode
;
memset
(
modifiers
,
-
1
,
sizeof
(
modifiers
));
memset
(
modifiers
,
-
1
,
sizeof
(
modifiers
));
dpy
=
XOpenDisplay
(
""
);
XDisplayKeycodes
(
dpy
,
&
minkey
,
&
maxkey
);
XDisplayKeycodes
(
dpy
,
&
minkey
,
&
maxkey
);
keymap
=
XGetKeyboardMapping
(
dpy
,
minkey
,(
maxkey
-
minkey
+
1
),
&
syms_per_keycode
);
keymap
=
XGetKeyboardMapping
(
dpy
,
minkey
,(
maxkey
-
minkey
+
1
),
&
syms_per_keycode
);
...
@@ -227,6 +225,7 @@ int main(int argc,char** argv)
...
@@ -227,6 +225,7 @@ int main(int argc,char** argv)
for
(
i
=
argc
-
1
;
i
>
0
;
i
--
)
for
(
i
=
argc
-
1
;
i
>
0
;
i
--
)
if
(
i
<
argc
-
1
&&
strcmp
(
argv
[
i
],
"-display"
)
==
0
)
{
if
(
i
<
argc
-
1
&&
strcmp
(
argv
[
i
],
"-display"
)
==
0
)
{
fprintf
(
stderr
,
"Using display %s
\n
"
,
argv
[
i
+
1
]);
dpy
=
XOpenDisplay
(
argv
[
i
+
1
]);
dpy
=
XOpenDisplay
(
argv
[
i
+
1
]);
if
(
dpy
==
0
)
{
if
(
dpy
==
0
)
{
fprintf
(
stderr
,
"Couldn't connect to display
\"
%s
\"
.
\n
"
,
argv
[
i
+
1
]);
fprintf
(
stderr
,
"Couldn't connect to display
\"
%s
\"
.
\n
"
,
argv
[
i
+
1
]);
...
...
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