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
15f792bc
Commit
15f792bc
authored
Mar 13, 2007
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
x11vnc: fix crash for kde dcop. limit ncache beta tester to 96MB viewers.
parent
0d4870c0
Changes
9
Hide whitespace changes
Inline
Side-by-side
Showing
9 changed files
with
1271 additions
and
959 deletions
+1271
-959
ChangeLog
x11vnc/ChangeLog
+4
-0
README
x11vnc/README
+1217
-931
help.c
x11vnc/help.c
+10
-8
scan.c
x11vnc/scan.c
+1
-1
screen.c
x11vnc/screen.c
+1
-1
solid.c
x11vnc/solid.c
+6
-5
x11vnc.1
x11vnc/x11vnc.1
+12
-10
x11vnc.c
x11vnc/x11vnc.c
+19
-2
x11vnc_defs.c
x11vnc/x11vnc_defs.c
+1
-1
No files found.
x11vnc/ChangeLog
View file @
15f792bc
2007-03-13 Karl Runge <runge@karlrunge.com>
* x11vnc: fix crash for kde dcop. limit ncache beta
tester to 96MB viewers.
2007-02-18 Karl Runge <runge@karlrunge.com>
* x11vnc: Get ultravnc textchat working with ssvnc.
...
...
x11vnc/README
View file @
15f792bc
This source diff could not be displayed because it is too large. You can
view the blob
instead.
x11vnc/help.c
View file @
15f792bc
...
...
@@ -115,11 +115,14 @@ void print_help(int mode) {
" etc, although they will be clipped if they extend beyond
\n
"
" the window.
\n
"
"-clip WxH+X+Y Only show the sub-region of the full display that
\n
"
" corresponds to the rectangle with size WxH and offset
\n
"
" +X+Y. The VNC display has size WxH (i.e. smaller than
\n
"
" the full display). This also works for -id/-sid mode
\n
"
" where the offset is relative to the upper left corner
\n
"
" of the selected window.
\n
"
" corresponds to the rectangle geometry with size WxH and
\n
"
" offset +X+Y. The VNC display has size WxH (i.e. smaller
\n
"
" than the full display). This also works for -id/-sid
\n
"
" mode where the offset is relative to the upper left
\n
"
" corner of the selected window. An example use of this
\n
"
" option would be to split a large (e.g. Xinerama) display
\n
"
" into two parts to be accessed via separate viewers by
\n
"
" running a separate x11vnc on each part.
\n
"
"
\n
"
"-flashcmap In 8bpp indexed color, let the installed colormap flash
\n
"
" as the pointer moves from window to window (slow).
\n
"
...
...
@@ -354,9 +357,8 @@ void print_help(int mode) {
" per-client viewonly state the filetransfer permissions
\n
"
" will NOT change.
\n
"
"
\n
"
"-ultrafilexfer Note, to *enable* UltraVNC filetransfer (currently
\n
"
" disabled by default, this may change...) and to get it
\n
"
" to work you probably need to supply these libvncserver
\n
"
"-ultrafilexfer Note: to enable UltraVNC filetransfer and to get it to
\n
"
" work you probably need to supply these libvncserver
\n
"
" options:
\"
-rfbversion 3.6 -permitfiletransfer
\"\n
"
"
\"
-ultrafilexfer
\"
is an alias for this combination.
\n
"
"
\n
"
...
...
x11vnc/scan.c
View file @
15f792bc
...
...
@@ -2846,7 +2846,7 @@ static int scan_display(int ystart, int rescan) {
int
x
,
y
,
w
,
n
;
int
tile_count
=
0
;
int
nodiffs
=
0
,
diff_hint
;
int
xd_check
,
xd_freq
=
1
;
int
xd_check
=
0
,
xd_freq
=
1
;
static
int
xd_tck
=
0
;
y
=
ystart
;
...
...
x11vnc/screen.c
View file @
15f792bc
...
...
@@ -845,7 +845,7 @@ static void initialize_snap_fb(void) {
snap_fb
=
snap
->
data
;
}
rfbClient
*
client
=
NULL
;
static
rfbClient
*
client
=
NULL
;
void
vnc_reflect_bell
(
rfbClient
*
cl
)
{
if
(
cl
)
{}
...
...
x11vnc/solid.c
View file @
15f792bc
...
...
@@ -611,26 +611,27 @@ static void solid_gnome(char *color) {
}
static
char
*
dcop_session
(
void
)
{
char
*
empty
=
strdup
(
""
);
#if NO_X11
RAWFB_RET
(
""
);
return
""
;
RAWFB_RET
(
empty
);
return
empty
;
#else
char
list_sessions
[]
=
"dcop --user '%s' --list-sessions"
;
int
len
;
char
*
cmd
,
*
host
,
*
user
=
NULL
;
char
*
out
,
*
p
,
*
ds
,
*
dsn
=
NULL
,
*
sess
=
NULL
,
*
sess2
=
NULL
;
RAWFB_RET
(
""
);
RAWFB_RET
(
empty
);
if
(
getenv
(
"SESSION_MANAGER"
))
{
return
""
;
return
empty
;
}
user
=
get_user_name
();
if
(
strstr
(
user
,
"'"
)
!=
NULL
)
{
rfbLog
(
"invalid user: %s
\n
"
,
user
);
free
(
user
);
return
""
;
return
empty
;
}
len
=
strlen
(
list_sessions
)
+
strlen
(
user
)
+
1
;
...
...
x11vnc/x11vnc.1
View file @
15f792bc
.\" This file was automatically generated from x11vnc -help output.
.TH X11VNC "1" "
February
2007" "x11vnc " "User Commands"
.TH X11VNC "1" "
March
2007" "x11vnc " "User Commands"
.SH NAME
x11vnc - allow VNC connections to real X11 displays
version: 0.8.5, lastmod: 2007-0
2-19
version: 0.8.5, lastmod: 2007-0
3-13
.SH SYNOPSIS
.B x11vnc
[OPTION]...
...
...
@@ -125,11 +125,14 @@ the window.
\fB-clip\fR \fIWxH+X+Y\fR
.IP
Only show the sub-region of the full display that
corresponds to the rectangle with size WxH and offset
+X+Y. The VNC display has size WxH (i.e. smaller than
the full display). This also works for \fB-id/-sid\fR mode
where the offset is relative to the upper left corner
of the selected window.
corresponds to the rectangle geometry with size WxH and
offset +X+Y. The VNC display has size WxH (i.e. smaller
than the full display). This also works for \fB-id/-sid\fR
mode where the offset is relative to the upper left
corner of the selected window. An example use of this
option would be to split a large (e.g. Xinerama) display
into two parts to be accessed via separate viewers by
running a separate x11vnc on each part.
.PP
\fB-flashcmap\fR
.IP
...
...
@@ -417,9 +420,8 @@ will NOT change.
.PP
\fB-ultrafilexfer\fR
.IP
Note, to *enable* UltraVNC filetransfer (currently
disabled by default, this may change...) and to get it
to work you probably need to supply these libvncserver
Note: to enable UltraVNC filetransfer and to get it to
work you probably need to supply these libvncserver
options: "\fB-rfbversion\fR \fI3.6 \fB-permitfiletransfer\fR"\fR
"\fB-ultrafilexfer\fR" is an alias for this combination.
.IP
...
...
x11vnc/x11vnc.c
View file @
15f792bc
...
...
@@ -75,7 +75,7 @@
* extensions exists that allow drawing the mouse into the framebuffer)
*
* The current *position* of the remote X mouse pointer is shown with
* the -cursor option. Further, if -cursor
X or -
X is used, a trick
* the -cursor option. Further, if -cursor
X is used, a trick
* is done to at least show the root window cursor vs non-root cursor.
* (perhaps some heuristic can be done to further distinguish cases...,
* currently "-cursor some" is a first hack at this)
...
...
@@ -3266,6 +3266,23 @@ int main(int argc, char* argv[]) {
scr
=
DefaultScreen
(
dpy
);
rootwin
=
RootWindow
(
dpy
,
scr
);
if
(
ncache_beta_tester
)
{
int
h
=
DisplayHeight
(
dpy
,
scr
);
int
w
=
DisplayWidth
(
dpy
,
scr
);
int
mem
=
(
w
*
h
*
4
)
/
(
1000
*
1000
),
MEM
=
96
;
if
(
mem
<
1
)
mem
=
1
;
/* limit poor, unsuspecting beta tester's viewer to 96 MB */
if
(
(
ncache
+
2
)
*
mem
>
MEM
)
{
int
n
=
(
MEM
/
mem
)
-
2
;
if
(
n
<
0
)
n
=
0
;
n
=
2
*
(
n
/
2
);
if
(
n
<
ncache
)
{
ncache
=
n
;
}
}
}
if
(
grab_always
)
{
Window
save
=
window
;
window
=
rootwin
;
...
...
@@ -3533,7 +3550,7 @@ int main(int argc, char* argv[]) {
rfbLog
(
" iconifying/deiconifying windows, moving and raising
\n
"
);
rfbLog
(
" windows, and reposting menus. In the simple CopyRect
\n
"
);
rfbLog
(
" encoding scheme used (no compression) a huge amount
\n
"
);
rfbLog
(
" of extra memory (20-
8
0MB) is used on both the server and
\n
"
);
rfbLog
(
" of extra memory (20-
10
0MB) is used on both the server and
\n
"
);
rfbLog
(
" client sides. This mode works with any VNC viewer.
\n
"
);
rfbLog
(
" However, in most you can actually see the cached pixel
\n
"
);
rfbLog
(
" data by scrolling down, so you need to re-adjust its size.
\n
"
);
...
...
x11vnc/x11vnc_defs.c
View file @
15f792bc
...
...
@@ -15,7 +15,7 @@ int xtrap_base_event_type = 0;
int
xdamage_base_event_type
=
0
;
/* date +'lastmod: %Y-%m-%d' */
char
lastmod
[]
=
"0.8.5 lastmod: 2007-0
2-19
"
;
char
lastmod
[]
=
"0.8.5 lastmod: 2007-0
3-13
"
;
/* X display info */
...
...
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