x11vnc: -debug_ncache, fix big fonts in tkx11vnc.

pull/1/head
runge 17 years ago
parent b2c291feea
commit c4c92d3a36

@ -1,3 +1,6 @@
2007-07-04 Karl Runge <runge@karlrunge.com>
* x11vnc: -debug_ncache, fix big fonts in tkx11vnc.
2007-06-14 Karl Runge <runge@karlrunge.com> 2007-06-14 Karl Runge <runge@karlrunge.com>
* x11vnc: add detectors if ultravnc chat or file xfer took place, * x11vnc: add detectors if ultravnc chat or file xfer took place,
if so ping clients more frequently. Fix compile bug if libssl if so ping clients more frequently. Fix compile bug if libssl

File diff suppressed because it is too large Load Diff

@ -2331,6 +2331,7 @@ void print_help(int mode) {
" (e.g. MacOS X window manager), although it could make\n" " (e.g. MacOS X window manager), although it could make\n"
" things worse. The default is 0 on Unix and 24 on\n" " things worse. The default is 0 on Unix and 24 on\n"
" MacOS X.\n" " MacOS X.\n"
"-debug_ncache Turn on debugging and profiling output under -ncache.\n"
"\n" "\n"
#endif #endif
"-wireframe [str] Try to detect window moves or resizes when a mouse\n" "-wireframe [str] Try to detect window moves or resizes when a mouse\n"
@ -3792,6 +3793,8 @@ void print_help(int mode) {
" nodebug_grabs disable -debug_grabs\n" " nodebug_grabs disable -debug_grabs\n"
" debug_sel enable -debug_sel\n" " debug_sel enable -debug_sel\n"
" nodebug_sel disable -debug_sel\n" " nodebug_sel disable -debug_sel\n"
" debug_ncache enable -debug_ncache\n"
" nodebug_ncache disable -debug_ncache\n"
" dbg enable -dbg crash shell\n" " dbg enable -dbg crash shell\n"
" nodbg disable -dbg crash shell\n" " nodbg disable -dbg crash shell\n"
"\n" "\n"
@ -3845,24 +3848,25 @@ void print_help(int mode) {
" nomodtweak xkb noxkb capslock nocapslock skip_lockkeys\n" " nomodtweak xkb noxkb capslock nocapslock skip_lockkeys\n"
" noskip_lockkeys skip_keycodes sloppy_keys nosloppy_keys\n" " noskip_lockkeys skip_keycodes sloppy_keys nosloppy_keys\n"
" skip_dups noskip_dups add_keysyms noadd_keysyms\n" " skip_dups noskip_dups add_keysyms noadd_keysyms\n"
" clear_mods noclear_mods clear_keys noclear_keys remap\n" " clear_mods noclear_mods clear_keys noclear_keys\n"
" repeat norepeat fb nofb bell nobell sel nosel primary\n" " remap repeat norepeat fb nofb bell nobell sel nosel\n"
" noprimary setprimary nosetprimary clipboard noclipboard\n" " primary noprimary setprimary nosetprimary clipboard\n"
" setclipboard nosetclipboard seldir cursorshape\n" " noclipboard setclipboard nosetclipboard seldir\n"
" nocursorshape cursorpos nocursorpos cursor_drag\n" " cursorshape nocursorshape cursorpos nocursorpos\n"
" nocursor_drag cursor show_cursor noshow_cursor nocursor\n" " cursor_drag nocursor_drag cursor show_cursor\n"
" arrow xfixes noxfixes xdamage noxdamage xd_area xd_mem\n" " noshow_cursor nocursor arrow xfixes noxfixes xdamage\n"
" alphacut alphafrac alpharemove noalpharemove alphablend\n" " noxdamage xd_area xd_mem alphacut alphafrac alpharemove\n"
" noalphablend xwarppointer xwarp noxwarppointer\n" " noalpharemove alphablend noalphablend xwarppointer\n"
" noxwarp buttonmap dragging nodragging ncache_cr\n" " xwarp noxwarppointer noxwarp buttonmap dragging\n"
" noncache_cr ncache_no_moveraise noncache_no_moveraise\n" " nodragging ncache_cr noncache_cr ncache_no_moveraise\n"
" ncache_no_dtchange noncache_no_dtchange\n" " noncache_no_moveraise ncache_no_dtchange\n"
" ncache_no_rootpixmap noncache_no_rootpixmap\n" " noncache_no_dtchange ncache_no_rootpixmap\n"
" ncache_reset_rootpixmap ncache_keep_anims\n" " noncache_no_rootpixmap ncache_reset_rootpixmap\n"
" noncache_keep_anims ncache_old_wm noncache_old_wm\n" " ncache_keep_anims noncache_keep_anims ncache_old_wm\n"
" ncache noncache ncache_size wireframe_mode wireframe wf\n" " noncache_old_wm ncache noncache ncache_size debug_ncache\n"
" nowireframe nowf wireframelocal wfl nowireframelocal\n" " nodebug_ncache wireframe_mode wireframe wf nowireframe\n"
" nowfl wirecopyrect wcr nowirecopyrect nowcr scr_area\n" " nowf wireframelocal wfl nowireframelocal nowfl\n"
" wirecopyrect wcr nowirecopyrect nowcr scr_area\n"
" scr_skip scr_inc scr_keys scr_term scr_keyrepeat\n" " scr_skip scr_inc scr_keys scr_term scr_keyrepeat\n"
" scr_parms scrollcopyrect scr noscrollcopyrect\n" " scr_parms scrollcopyrect scr noscrollcopyrect\n"
" noscr fixscreen noxrecord xrecord reset_record\n" " noscr fixscreen noxrecord xrecord reset_record\n"

@ -206,8 +206,8 @@ int wireframe_local = 1;
#ifdef NO_NCACHE #ifdef NO_NCACHE
#define NCACHE 0 #define NCACHE 0
#else #else
#define xxNCACHE -12 #define NCACHE -12
#define NCACHE -1 #define xxNCACHE -1
#endif #endif
#endif #endif
@ -232,6 +232,7 @@ int ncache_keep_anims = 0;
int ncache_old_wm = 0; int ncache_old_wm = 0;
int macosx_ncache_macmenu = 0; int macosx_ncache_macmenu = 0;
int ncache_beta_tester = 0; int ncache_beta_tester = 0;
int ncdb = 0;
Atom atom_NET_ACTIVE_WINDOW = None; Atom atom_NET_ACTIVE_WINDOW = None;
Atom atom_NET_CURRENT_DESKTOP = None; Atom atom_NET_CURRENT_DESKTOP = None;

@ -173,6 +173,7 @@ extern int ncache_keep_anims;
extern int ncache_old_wm; extern int ncache_old_wm;
extern int macosx_ncache_macmenu; extern int macosx_ncache_macmenu;
extern int ncache_beta_tester; extern int ncache_beta_tester;
extern int ncdb;
extern Atom atom_NET_ACTIVE_WINDOW; extern Atom atom_NET_ACTIVE_WINDOW;
extern Atom atom_NET_CURRENT_DESKTOP; extern Atom atom_NET_CURRENT_DESKTOP;

@ -2940,6 +2940,20 @@ char *process_remote_cmd(char *cmd, int stringonly) {
check_ncache(1,0); check_ncache(1,0);
} }
} }
} else if (!strcmp(p, "debug_ncache")) {
if (query) {
snprintf(buf, bufn, "ans=%s:%d", p, ncdb);
goto qry;
}
ncdb = 1;
rfbLog("remote_cmd: enabled debug_ncache\n");
} else if (!strcmp(p, "nodebug_ncache")) {
if (query) {
snprintf(buf, bufn, "ans=%s:%d", p, !ncdb);
goto qry;
}
ncdb = 0;
rfbLog("remote_cmd: disabled debug_ncache\n");
#endif #endif
} else if (strstr(p, "wireframe_mode") == p) { } else if (strstr(p, "wireframe_mode") == p) {

@ -2931,7 +2931,7 @@ if (ncache > 0) {
nomsg = 0; nomsg = 0;
} }
} else { } else {
fprintf(stderr, "\n*** SCAN_DISPLAY CHECK_NCACHE/%d *** %d rescan=%d\n", gotone, y, rescan); if (ncdb) fprintf(stderr, "\n*** SCAN_DISPLAY CHECK_NCACHE/%d *** %d rescan=%d\n", gotone, y, rescan);
} }
X_UNLOCK; X_UNLOCK;
check_ncache(0, 1); check_ncache(0, 1);

@ -286,6 +286,7 @@ Debugging
debug_tiles debug_tiles
debug_grabs debug_grabs
debug_sel debug_sel
debug_ncache
dbg dbg
=GAL LOFF =GAL LOFF
@ -383,7 +384,7 @@ Tuning
ncache_no_dtchange ncache_no_dtchange
ncache_no_rootpixmap ncache_no_rootpixmap
ncache_keep_anims ncache_keep_anims
=A ncache_reset_rootpixmap =RA ncache_reset_rootpixmap
=GAL LOFF =GAL LOFF
-- --
=GAL SharedMemory:: =GAL SharedMemory::
@ -6321,6 +6322,17 @@ set bfont "-adobe-helvetica-bold-r-*-*-*-120-*-*-*-*-*-*"
set sfont "-adobe-helvetica-bold-r-*-*-*-100-*-*-*-*-*-*" set sfont "-adobe-helvetica-bold-r-*-*-*-100-*-*-*-*-*-*"
set snfont "-adobe-helvetica-medium-r-*-*-*-100-*-*-*-*-*-*" set snfont "-adobe-helvetica-medium-r-*-*-*-100-*-*-*-*-*-*"
set ffont "fixed" set ffont "fixed"
set ls ""
catch {set ls [font metrics $bfont -linespace]}
if {$ls != ""} {
if {$ls > 14} {
# some recent setups have BIG rendering for the above fonts:
set bfont "-adobe-helvetica-bold-r-*-*-*-90-*-*-*-*-*-*"
set sfont "-adobe-helvetica-bold-r-*-*-*-75-*-*-*-*-*-*"
set snfont "-adobe-helvetica-medium-r-*-*-*-75-*-*-*-*-*-*"
}
}
set help_indent 24; set help_indent 24;
set reply_xdisplay "" set reply_xdisplay ""
set all_settings "None so far." set all_settings "None so far."

@ -297,6 +297,7 @@ char gui_code[] = "";
" debug_tiles\n" " debug_tiles\n"
" debug_grabs\n" " debug_grabs\n"
" debug_sel\n" " debug_sel\n"
" debug_ncache\n"
" dbg\n" " dbg\n"
" =GAL LOFF\n" " =GAL LOFF\n"
"\n" "\n"
@ -394,7 +395,7 @@ char gui_code[] = "";
" ncache_no_dtchange\n" " ncache_no_dtchange\n"
" ncache_no_rootpixmap\n" " ncache_no_rootpixmap\n"
" ncache_keep_anims\n" " ncache_keep_anims\n"
" =A ncache_reset_rootpixmap\n" " =RA ncache_reset_rootpixmap\n"
" =GAL LOFF\n" " =GAL LOFF\n"
" --\n" " --\n"
" =GAL SharedMemory::\n" " =GAL SharedMemory::\n"
@ -6332,6 +6333,17 @@ char gui_code[] = "";
"set sfont \"-adobe-helvetica-bold-r-*-*-*-100-*-*-*-*-*-*\"\n" "set sfont \"-adobe-helvetica-bold-r-*-*-*-100-*-*-*-*-*-*\"\n"
"set snfont \"-adobe-helvetica-medium-r-*-*-*-100-*-*-*-*-*-*\"\n" "set snfont \"-adobe-helvetica-medium-r-*-*-*-100-*-*-*-*-*-*\"\n"
"set ffont \"fixed\"\n" "set ffont \"fixed\"\n"
"\n"
"set ls \"\"\n"
"catch {set ls [font metrics $bfont -linespace]}\n"
"if {$ls != \"\"} {\n"
" if {$ls > 14} {\n"
" # some recent setups have BIG rendering for the above fonts:\n"
" set bfont \"-adobe-helvetica-bold-r-*-*-*-90-*-*-*-*-*-*\"\n"
" set sfont \"-adobe-helvetica-bold-r-*-*-*-75-*-*-*-*-*-*\"\n"
" set snfont \"-adobe-helvetica-medium-r-*-*-*-75-*-*-*-*-*-*\"\n"
" }\n"
"}\n"
"set help_indent 24;\n" "set help_indent 24;\n"
"set reply_xdisplay \"\"\n" "set reply_xdisplay \"\"\n"
"set all_settings \"None so far.\"\n" "set all_settings \"None so far.\"\n"

File diff suppressed because it is too large Load Diff

@ -1,8 +1,8 @@
.\" This file was automatically generated from x11vnc -help output. .\" This file was automatically generated from x11vnc -help output.
.TH X11VNC "1" "June 2007" "x11vnc " "User Commands" .TH X11VNC "1" "July 2007" "x11vnc " "User Commands"
.SH NAME .SH NAME
x11vnc - allow VNC connections to real X11 displays x11vnc - allow VNC connections to real X11 displays
version: 0.9.2, lastmod: 2007-06-16 version: 0.9.3, lastmod: 2007-07-03
.SH SYNOPSIS .SH SYNOPSIS
.B x11vnc .B x11vnc
[OPTION]... [OPTION]...
@ -2731,6 +2731,10 @@ the situation with dropshadows or other compositing
things worse. The default is 0 on Unix and 24 on things worse. The default is 0 on Unix and 24 on
MacOS X. MacOS X.
.PP .PP
\fB-debug_ncache\fR
.IP
Turn on debugging and profiling output under \fB-ncache.\fR
.PP
\fB-wireframe\fR \fI[str],\fR \fB-nowireframe\fR \fB-wireframe\fR \fI[str],\fR \fB-nowireframe\fR
.IP .IP
Try to detect window moves or resizes when a mouse Try to detect window moves or resizes when a mouse
@ -4627,6 +4631,10 @@ debug_sel enable \fB-debug_sel\fR
.IP .IP
nodebug_sel disable \fB-debug_sel\fR nodebug_sel disable \fB-debug_sel\fR
.IP .IP
debug_ncache enable \fB-debug_ncache\fR
.IP
nodebug_ncache disable \fB-debug_ncache\fR
.IP
dbg enable \fB-dbg\fR crash shell dbg enable \fB-dbg\fR crash shell
.IP .IP
nodbg disable \fB-dbg\fR crash shell nodbg disable \fB-dbg\fR crash shell
@ -4700,24 +4708,25 @@ xrandr_mode rotate padgeom quiet q noquiet modtweak
nomodtweak xkb noxkb capslock nocapslock skip_lockkeys nomodtweak xkb noxkb capslock nocapslock skip_lockkeys
noskip_lockkeys skip_keycodes sloppy_keys nosloppy_keys noskip_lockkeys skip_keycodes sloppy_keys nosloppy_keys
skip_dups noskip_dups add_keysyms noadd_keysyms skip_dups noskip_dups add_keysyms noadd_keysyms
clear_mods noclear_mods clear_keys noclear_keys remap clear_mods noclear_mods clear_keys noclear_keys
repeat norepeat fb nofb bell nobell sel nosel primary remap repeat norepeat fb nofb bell nobell sel nosel
noprimary setprimary nosetprimary clipboard noclipboard primary noprimary setprimary nosetprimary clipboard
setclipboard nosetclipboard seldir cursorshape noclipboard setclipboard nosetclipboard seldir
nocursorshape cursorpos nocursorpos cursor_drag cursorshape nocursorshape cursorpos nocursorpos
nocursor_drag cursor show_cursor noshow_cursor nocursor cursor_drag nocursor_drag cursor show_cursor
arrow xfixes noxfixes xdamage noxdamage xd_area xd_mem noshow_cursor nocursor arrow xfixes noxfixes xdamage
alphacut alphafrac alpharemove noalpharemove alphablend noxdamage xd_area xd_mem alphacut alphafrac alpharemove
noalphablend xwarppointer xwarp noxwarppointer noalpharemove alphablend noalphablend xwarppointer
noxwarp buttonmap dragging nodragging ncache_cr xwarp noxwarppointer noxwarp buttonmap dragging
noncache_cr ncache_no_moveraise noncache_no_moveraise nodragging ncache_cr noncache_cr ncache_no_moveraise
ncache_no_dtchange noncache_no_dtchange noncache_no_moveraise ncache_no_dtchange
ncache_no_rootpixmap noncache_no_rootpixmap noncache_no_dtchange ncache_no_rootpixmap
ncache_reset_rootpixmap ncache_keep_anims noncache_no_rootpixmap ncache_reset_rootpixmap
noncache_keep_anims ncache_old_wm noncache_old_wm ncache_keep_anims noncache_keep_anims ncache_old_wm
ncache noncache ncache_size wireframe_mode wireframe wf noncache_old_wm ncache noncache ncache_size debug_ncache
nowireframe nowf wireframelocal wfl nowireframelocal nodebug_ncache wireframe_mode wireframe wf nowireframe
nowfl wirecopyrect wcr nowirecopyrect nowcr scr_area nowf wireframelocal wfl nowireframelocal nowfl
wirecopyrect wcr nowirecopyrect nowcr scr_area
scr_skip scr_inc scr_keys scr_term scr_keyrepeat scr_skip scr_inc scr_keys scr_term scr_keyrepeat
scr_parms scrollcopyrect scr noscrollcopyrect scr_parms scrollcopyrect scr noscrollcopyrect
noscr fixscreen noxrecord xrecord reset_record noscr fixscreen noxrecord xrecord reset_record

@ -2307,6 +2307,8 @@ int main(int argc, char* argv[]) {
} else if (!strcmp(arg, "-ncache_pad") || !strcmp(arg, "-nc_pad")) { } else if (!strcmp(arg, "-ncache_pad") || !strcmp(arg, "-nc_pad")) {
CHECK_ARGC CHECK_ARGC
ncache_pad = atoi(argv[++i]); ncache_pad = atoi(argv[++i]);
} else if (!strcmp(arg, "-debug_ncache")) {
ncdb++;
#endif #endif
} else if (!strcmp(arg, "-wireframe") } else if (!strcmp(arg, "-wireframe")
|| !strcmp(arg, "-wf")) { || !strcmp(arg, "-wf")) {
@ -3670,6 +3672,9 @@ int main(int argc, char* argv[]) {
rfbLog(" Note: '-scale' is on and this can cause more problems.\n"); rfbLog(" Note: '-scale' is on and this can cause more problems.\n");
} }
} }
if (ncache && getenv("NCACHE_DEBUG")) {
ncdb = 1;
}
/* check for OS with small shm limits */ /* check for OS with small shm limits */
if (using_shm && ! single_copytile) { if (using_shm && ! single_copytile) {

@ -15,7 +15,7 @@ int xtrap_base_event_type = 0;
int xdamage_base_event_type = 0; int xdamage_base_event_type = 0;
/* date +'lastmod: %Y-%m-%d' */ /* date +'lastmod: %Y-%m-%d' */
char lastmod[] = "0.9.2 lastmod: 2007-06-16"; char lastmod[] = "0.9.3 lastmod: 2007-07-03";
/* X display info */ /* X display info */

Loading…
Cancel
Save