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
65f77eb0
Commit
65f77eb0
authored
Apr 19, 2007
by
runge
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add latest vncviewer patch.
parent
e1c733ee
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
192 additions
and
142 deletions
+192
-142
tight-vncviewer-full.patch
...ed_tightvnc_viewer/src/patches/tight-vncviewer-full.patch
+192
-142
No files found.
x11vnc/misc/enhanced_tightvnc_viewer/src/patches/tight-vncviewer-full.patch
View file @
65f77eb0
diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/Vncviewer vnc_unixsrc/vncviewer/Vncviewer
diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/Vncviewer vnc_unixsrc/vncviewer/Vncviewer
--- vnc_unixsrc.orig/vncviewer/Vncviewer 2003-02-07 05:30:57.000000000 -0500
--- vnc_unixsrc.orig/vncviewer/Vncviewer 2003-02-07 05:30:57.000000000 -0500
+++ vnc_unixsrc/vncviewer/Vncviewer 2007-0
2-18 19:52:59.000000000 -05
00
+++ vnc_unixsrc/vncviewer/Vncviewer 2007-0
4-05 23:13:59.000000000 -04
00
@@ -5,9 +5,9 @@
@@ -5,9 +5,9 @@
!
!
...
@@ -33,12 +33,12 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/Vncviewer vnc_unixsrc/vncview
...
@@ -33,12 +33,12 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/Vncviewer vnc_unixsrc/vncview
*popup.buttonForm.Command.borderWidth: 0
*popup.buttonForm.Command.borderWidth: 0
*popup.buttonForm.Toggle.borderWidth: 0
*popup.buttonForm.Toggle.borderWidth: 0
@@ -96,43 +97,1
54
@@
@@ -96,43 +97,1
60
@@
! Popup buttons
! Popup buttons
!
!
-*popupButtonCount: 8
-*popupButtonCount: 8
+*popupButtonCount: 2
7
+*popupButtonCount: 2
8
*popup*button1.label: Dismiss popup
*popup*button1.label: Dismiss popup
-*popup*button1.translations: #override\n\
-*popup*button1.translations: #override\n\
...
@@ -112,109 +112,115 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/Vncviewer vnc_unixsrc/vncview
...
@@ -112,109 +112,115 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/Vncviewer vnc_unixsrc/vncview
+ <Visible>: SetViewOnlyState()\\n\
+ <Visible>: SetViewOnlyState()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() ToggleViewOnly() HidePopup()
+ <Btn1Down>,<Btn1Up>: toggle() ToggleViewOnly() HidePopup()
+
+
+*popup*button11.label:
Cursor Shape
+*popup*button11.label:
Disable Bell
+*popup*button11.type: toggle
+*popup*button11.type: toggle
+*popup*button11.translations: #override\\n\
+*popup*button11.translations: #override\\n\
+ <Visible>: Set
CursorShape
State()\\n\
+ <Visible>: Set
Bell
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
CursorShape
() HidePopup()
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
Bell
() HidePopup()
+
+
+*popup*button12.label:
X11 Cursor
+*popup*button12.label:
Cursor Shape
+*popup*button12.type: toggle
+*popup*button12.type: toggle
+*popup*button12.translations: #override\\n\
+*popup*button12.translations: #override\\n\
+ <Visible>: Set
X11Cursor
State()\\n\
+ <Visible>: Set
CursorShape
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
X11Cursor
() HidePopup()
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
CursorShape
() HidePopup()
+
+
+*popup*button13.label:
Cursor Alphablend
+*popup*button13.label:
X11 Cursor
+*popup*button13.type: toggle
+*popup*button13.type: toggle
+*popup*button13.translations: #override\\n\
+*popup*button13.translations: #override\\n\
+ <Visible>: Set
CursorAlpha
State()\\n\
+ <Visible>: Set
X11Cursor
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
CursorAlpha
() HidePopup()
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
X11Cursor
() HidePopup()
+
+
+*popup*button14.label:
Toggle Tight/ZRLE
+*popup*button14.label:
Cursor Alphablend
+*popup*button14.type: toggle
+*popup*button14.type: toggle
+*popup*button14.translations: #override\\n\
+*popup*button14.translations: #override\\n\
+ <Visible>: Set
ZRLE
State()\\n\
+ <Visible>: Set
CursorAlpha
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
TightZRLE
() HidePopup()
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
CursorAlpha
() HidePopup()
+
+
+*popup*button15.label:
Disable JPEG
+*popup*button15.label:
Toggle Tight/ZRLE
+*popup*button15.type: toggle
+*popup*button15.type: toggle
+*popup*button15.translations: #override\\n\
+*popup*button15.translations: #override\\n\
+ <Visible>: Set
NOJPEG
State()\\n\
+ <Visible>: Set
ZRLE
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
JPEG
() HidePopup()
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
TightZRLE
() HidePopup()
+
+
+*popup*button16.label:
Prefer raw for localhost
+*popup*button16.label:
Disable JPEG
+*popup*button16.type: toggle
+*popup*button16.type: toggle
+*popup*button16.translations: #override\\n\
+*popup*button16.translations: #override\\n\
+ <Visible>: Set
RawLocal
State()\\n\
+ <Visible>: Set
NOJPEG
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
RawLocal
() HidePopup()
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
JPEG
() HidePopup()
+
+
+*popup*button17.label:
Full Color
+*popup*button17.label:
Prefer raw for localhost
+*popup*button17.type: toggle
+*popup*button17.type: toggle
+*popup*button17.translations: #override\\n\
+*popup*button17.translations: #override\\n\
+ <Visible>: Set
FullColor
State()\\n\
+ <Visible>: Set
RawLocal
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
FullColor
() HidePopup()
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
RawLocal
() HidePopup()
+
+
+*popup*button18.label:
Grey Scale (16 & 8-bpp)
+*popup*button18.label:
Full Color
+*popup*button18.type: toggle
+*popup*button18.type: toggle
+*popup*button18.translations: #override\\n\
+*popup*button18.translations: #override\\n\
+ <Visible>: Set
GreyScale
State()\\n\
+ <Visible>: Set
FullColor
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
GreyScale
() HidePopup()
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
FullColor
() HidePopup()
+
+
+*popup*button19.label:
16 bit color (BGR565
)
+*popup*button19.label:
Grey Scale (16 & 8-bpp
)
+*popup*button19.type: toggle
+*popup*button19.type: toggle
+*popup*button19.translations: #override\\n\
+*popup*button19.translations: #override\\n\
+ <Visible>: Set
16bpp
State()\\n\
+ <Visible>: Set
GreyScale
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
16bpp
() HidePopup()
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
GreyScale
() HidePopup()
+
+
+*popup*button20.label:
8 bit color (BGR233
)
+*popup*button20.label:
16 bit color (BGR565
)
+*popup*button20.type: toggle
+*popup*button20.type: toggle
+*popup*button20.translations: #override\\n\
+*popup*button20.translations: #override\\n\
+ <Visible>: Set
8
bppState()\\n\
+ <Visible>: Set
16
bppState()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
8
bpp() HidePopup()
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
16
bpp() HidePopup()
+
+
+*popup*button21.label:
- 256 colors
+*popup*button21.label:
8 bit color (BGR233)
+*popup*button21.type: toggle
+*popup*button21.type: toggle
+*popup*button21.translations: #override\\n\
+*popup*button21.translations: #override\\n\
+ <Visible>: Set
256Colors
State()\\n\
+ <Visible>: Set
8bpp
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
256Colors
() HidePopup()
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
8bpp
() HidePopup()
+
+
+*popup*button22.label: -
64
colors
+*popup*button22.label: -
256
colors
+*popup*button22.type: toggle
+*popup*button22.type: toggle
+*popup*button22.translations: #override\\n\
+*popup*button22.translations: #override\\n\
+ <Visible>: Set
64
ColorsState()\\n\
+ <Visible>: Set
256
ColorsState()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
64
Colors() HidePopup()
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
256
Colors() HidePopup()
+
+
+*popup*button23.label: -
8
colors
+*popup*button23.label: -
64
colors
+*popup*button23.type: toggle
+*popup*button23.type: toggle
+*popup*button23.translations: #override\\n\
+*popup*button23.translations: #override\\n\
+ <Visible>: Set
8
ColorsState()\\n\
+ <Visible>: Set
64
ColorsState()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
8
Colors() HidePopup()
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
64
Colors() HidePopup()
+
+
+*popup*button24.label:
Disable Remote Input
+*popup*button24.label:
- 8 colors
+*popup*button24.type: toggle
+*popup*button24.type: toggle
+*popup*button24.translations: #override\\n\
+*popup*button24.translations: #override\\n\
+ <Visible>: Set
ServerInput
State()\\n\
+ <Visible>: Set
8Colors
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
ServerInput
() HidePopup()
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
8Colors
() HidePopup()
+
+
+*popup*button25.label:
Single Window
+*popup*button25.label:
Disable Remote Input
+*popup*button25.type: toggle
+*popup*button25.type: toggle
+*popup*button25.translations: #override\\n\
+*popup*button25.translations: #override\\n\
+ <Visible>: SetServerInputState()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() ToggleServerInput() HidePopup()
+
+*popup*button26.label: Single Window
+*popup*button26.type: toggle
+*popup*button26.translations: #override\\n\
+ <Visible>: SetSingleWindowState()\\n\
+ <Visible>: SetSingleWindowState()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() ToggleSingleWindow() HidePopup()
+ <Btn1Down>,<Btn1Up>: toggle() ToggleSingleWindow() HidePopup()
+
+
+*popup*button2
6
.label: Set 1/n Server Scale
+*popup*button2
7
.label: Set 1/n Server Scale
+*popup*button2
6
.translations: #override\\n\
+*popup*button2
7
.translations: #override\\n\
+ <Btn1Down>,<Btn1Up>: DoServerScale() HidePopup()
+ <Btn1Down>,<Btn1Up>: DoServerScale() HidePopup()
+
+
+*popup*button2
7
.label: Text Chat
+*popup*button2
8
.label: Text Chat
+*popup*button2
7
.type: toggle
+*popup*button2
8
.type: toggle
+*popup*button2
7
.translations: #override\\n\
+*popup*button2
8
.translations: #override\\n\
+ <Visible>: SetTextChatState()\\n\
+ <Visible>: SetTextChatState()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() ToggleTextChat() HidePopup()
+ <Btn1Down>,<Btn1Up>: toggle() ToggleTextChat() HidePopup()
+
+
diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/vncviewer/argsresources.c
diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/vncviewer/argsresources.c
--- vnc_unixsrc.orig/vncviewer/argsresources.c 2007-02-04 17:10:31.000000000 -0500
--- vnc_unixsrc.orig/vncviewer/argsresources.c 2007-02-04 17:10:31.000000000 -0500
+++ vnc_unixsrc/vncviewer/argsresources.c 2007-0
3-20 10:10:59
.000000000 -0400
+++ vnc_unixsrc/vncviewer/argsresources.c 2007-0
4-05 23:14:45
.000000000 -0400
@@ -31,7 +31,7 @@
@@ -31,7 +31,7 @@
char *fallback_resources[] = {
char *fallback_resources[] = {
...
@@ -258,7 +264,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
...
@@ -258,7 +264,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
<KeyPress>: SendRFBEvent() HidePopup()",
<KeyPress>: SendRFBEvent() HidePopup()",
- "*popupButtonCount: 8",
- "*popupButtonCount: 8",
+ "*popupButtonCount: 2
7
",
+ "*popupButtonCount: 2
8
",
"*popup*button1.label: Dismiss popup",
"*popup*button1.label: Dismiss popup",
"*popup*button1.translations: #override\\n\
"*popup*button1.translations: #override\\n\
...
@@ -271,7 +277,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
...
@@ -271,7 +277,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
"*popup*button3.type: toggle",
"*popup*button3.type: toggle",
"*popup*button3.translations: #override\\n\
"*popup*button3.translations: #override\\n\
<Visible>: SetFullScreenState()\\n\
<Visible>: SetFullScreenState()\\n\
@@ -115,9 +122,1
27
@@
@@ -115,9 +122,1
33
@@
"*popup*button8.translations: #override\\n\
"*popup*button8.translations: #override\\n\
<Btn1Down>,<Btn1Up>: SendRFBEvent(key,F8) HidePopup()",
<Btn1Down>,<Btn1Up>: SendRFBEvent(key,F8) HidePopup()",
...
@@ -285,103 +291,109 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
...
@@ -285,103 +291,109 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
+ <Visible>: SetViewOnlyState()\\n\
+ <Visible>: SetViewOnlyState()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() ToggleViewOnly() HidePopup()",
+ <Btn1Down>,<Btn1Up>: toggle() ToggleViewOnly() HidePopup()",
+
+
+ "*popup*button11.label:
Cursor Shape
",
+ "*popup*button11.label:
Disable Bell
",
+ "*popup*button11.type: toggle",
+ "*popup*button11.type: toggle",
+ "*popup*button11.translations: #override\\n\
+ "*popup*button11.translations: #override\\n\
+ <Visible>: Set
CursorShape
State()\\n\
+ <Visible>: Set
Bell
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
CursorShape
() HidePopup()",
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
Bell
() HidePopup()",
+
+
+ "*popup*button12.label:
X11 Cursor
",
+ "*popup*button12.label:
Cursor Shape
",
+ "*popup*button12.type: toggle",
+ "*popup*button12.type: toggle",
+ "*popup*button12.translations: #override\\n\
+ "*popup*button12.translations: #override\\n\
+ <Visible>: Set
X11Cursor
State()\\n\
+ <Visible>: Set
CursorShape
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
X11Cursor
() HidePopup()",
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
CursorShape
() HidePopup()",
+
+
+ "*popup*button13.label:
Cursor Alphablend
",
+ "*popup*button13.label:
X11 Cursor
",
+ "*popup*button13.type: toggle",
+ "*popup*button13.type: toggle",
+ "*popup*button13.translations: #override\\n\
+ "*popup*button13.translations: #override\\n\
+ <Visible>: Set
CursorAlpha
State()\\n\
+ <Visible>: Set
X11Cursor
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
CursorAlpha
() HidePopup()",
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
X11Cursor
() HidePopup()",
+
+
+ "*popup*button14.label:
Toggle Tight/ZRLE
",
+ "*popup*button14.label:
Cursor Alphablend
",
+ "*popup*button14.type: toggle",
+ "*popup*button14.type: toggle",
+ "*popup*button14.translations: #override\\n\
+ "*popup*button14.translations: #override\\n\
+ <Visible>: Set
ZRLE
State()\\n\
+ <Visible>: Set
CursorAlpha
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
TightZRLE
() HidePopup()",
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
CursorAlpha
() HidePopup()",
+
+
+ "*popup*button15.label:
Disable JPEG
",
+ "*popup*button15.label:
Toggle Tight/ZRLE
",
+ "*popup*button15.type: toggle",
+ "*popup*button15.type: toggle",
+ "*popup*button15.translations: #override\\n\
+ "*popup*button15.translations: #override\\n\
+ <Visible>: Set
NOJPEG
State()\\n\
+ <Visible>: Set
ZRLE
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
JPEG
() HidePopup()",
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
TightZRLE
() HidePopup()",
+
+
+ "*popup*button16.label:
Prefer raw for localhost
",
+ "*popup*button16.label:
Disable JPEG
",
+ "*popup*button16.type: toggle",
+ "*popup*button16.type: toggle",
+ "*popup*button16.translations: #override\\n\
+ "*popup*button16.translations: #override\\n\
+ <Visible>: Set
RawLocal
State()\\n\
+ <Visible>: Set
NOJPEG
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
RawLocal
() HidePopup()",
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
JPEG
() HidePopup()",
+
+
+ "*popup*button17.label:
Full Color
",
+ "*popup*button17.label:
Prefer raw for localhost
",
+ "*popup*button17.type: toggle",
+ "*popup*button17.type: toggle",
+ "*popup*button17.translations: #override\\n\
+ "*popup*button17.translations: #override\\n\
+ <Visible>: Set
FullColor
State()\\n\
+ <Visible>: Set
RawLocal
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
FullColor
() HidePopup()",
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
RawLocal
() HidePopup()",
+
+
+ "*popup*button18.label:
Grey Scale (16 & 8-bpp)
",
+ "*popup*button18.label:
Full Color
",
+ "*popup*button18.type: toggle",
+ "*popup*button18.type: toggle",
+ "*popup*button18.translations: #override\\n\
+ "*popup*button18.translations: #override\\n\
+ <Visible>: Set
GreyScale
State()\\n\
+ <Visible>: Set
FullColor
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
GreyScale
() HidePopup()",
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
FullColor
() HidePopup()",
+
+
+ "*popup*button19.label:
16 bit color (BGR565
)",
+ "*popup*button19.label:
Grey Scale (16 & 8-bpp
)",
+ "*popup*button19.type: toggle",
+ "*popup*button19.type: toggle",
+ "*popup*button19.translations: #override\\n\
+ "*popup*button19.translations: #override\\n\
+ <Visible>: Set
16bpp
State()\\n\
+ <Visible>: Set
GreyScale
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
16bpp
() HidePopup()",
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
GreyScale
() HidePopup()",
+
+
+ "*popup*button20.label:
8 bit color (BGR233
)",
+ "*popup*button20.label:
16 bit color (BGR565
)",
+ "*popup*button20.type: toggle",
+ "*popup*button20.type: toggle",
+ "*popup*button20.translations: #override\\n\
+ "*popup*button20.translations: #override\\n\
+ <Visible>: Set
8
bppState()\\n\
+ <Visible>: Set
16
bppState()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
8
bpp() HidePopup()",
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
16
bpp() HidePopup()",
+
+
+ "*popup*button21.label:
- 256 colors
",
+ "*popup*button21.label:
8 bit color (BGR233)
",
+ "*popup*button21.type: toggle",
+ "*popup*button21.type: toggle",
+ "*popup*button21.translations: #override\\n\
+ "*popup*button21.translations: #override\\n\
+ <Visible>: Set
256Colors
State()\\n\
+ <Visible>: Set
8bpp
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
256Colors
() HidePopup()",
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
8bpp
() HidePopup()",
+
+
+ "*popup*button22.label: -
64
colors",
+ "*popup*button22.label: -
256
colors",
+ "*popup*button22.type: toggle",
+ "*popup*button22.type: toggle",
+ "*popup*button22.translations: #override\\n\
+ "*popup*button22.translations: #override\\n\
+ <Visible>: Set
64
ColorsState()\\n\
+ <Visible>: Set
256
ColorsState()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
64
Colors() HidePopup()",
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
256
Colors() HidePopup()",
+
+
+ "*popup*button23.label: -
8
colors",
+ "*popup*button23.label: -
64
colors",
+ "*popup*button23.type: toggle",
+ "*popup*button23.type: toggle",
+ "*popup*button23.translations: #override\\n\
+ "*popup*button23.translations: #override\\n\
+ <Visible>: Set
8
ColorsState()\\n\
+ <Visible>: Set
64
ColorsState()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
8
Colors() HidePopup()",
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
64
Colors() HidePopup()",
+
+
+ "*popup*button24.label:
Disable Remote Input
",
+ "*popup*button24.label:
- 8 colors
",
+ "*popup*button24.type: toggle",
+ "*popup*button24.type: toggle",
+ "*popup*button24.translations: #override\\n\
+ "*popup*button24.translations: #override\\n\
+ <Visible>: Set
ServerInput
State()\\n\
+ <Visible>: Set
8Colors
State()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
ServerInput
() HidePopup()",
+ <Btn1Down>,<Btn1Up>: toggle() Toggle
8Colors
() HidePopup()",
+
+
+ "*popup*button25.label:
Single Window
",
+ "*popup*button25.label:
Disable Remote Input
",
+ "*popup*button25.type: toggle",
+ "*popup*button25.type: toggle",
+ "*popup*button25.translations: #override\\n\
+ "*popup*button25.translations: #override\\n\
+ <Visible>: SetServerInputState()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() ToggleServerInput() HidePopup()",
+
+ "*popup*button26.label: Single Window",
+ "*popup*button26.type: toggle",
+ "*popup*button26.translations: #override\\n\
+ <Visible>: SetSingleWindowState()\\n\
+ <Visible>: SetSingleWindowState()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() ToggleSingleWindow() HidePopup()",
+ <Btn1Down>,<Btn1Up>: toggle() ToggleSingleWindow() HidePopup()",
+
+
+ "*popup*button2
6
.label: Set 1/n Server Scale",
+ "*popup*button2
7
.label: Set 1/n Server Scale",
+ "*popup*button2
6
.translations: #override\\n\
+ "*popup*button2
7
.translations: #override\\n\
+ <Btn1Down>,<Btn1Up>: DoServerScale() HidePopup()",
+ <Btn1Down>,<Btn1Up>: DoServerScale() HidePopup()",
+
+
+ "*popup*button2
7
.label: Text Chat",
+ "*popup*button2
8
.label: Text Chat",
+ "*popup*button2
7
.type: toggle",
+ "*popup*button2
8
.type: toggle",
+ "*popup*button2
7
.translations: #override\\n\
+ "*popup*button2
8
.translations: #override\\n\
+ <Visible>: SetTextChatState()\\n\
+ <Visible>: SetTextChatState()\\n\
+ <Btn1Down>,<Btn1Up>: toggle() ToggleTextChat() HidePopup()",
+ <Btn1Down>,<Btn1Up>: toggle() ToggleTextChat() HidePopup()",
+
+
...
@@ -399,7 +411,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
...
@@ -399,7 +411,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
/*
/*
* vncServerHost and vncServerPort are set either from the command line or
* vncServerHost and vncServerPort are set either from the command line or
@@ -135,6 +26
0
,7 @@
@@ -135,6 +26
6
,7 @@
*/
*/
AppData appData;
AppData appData;
...
@@ -407,7 +419,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
...
@@ -407,7 +419,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
static XtResource appDataResourceList[] = {
static XtResource appDataResourceList[] = {
{"shareDesktop", "ShareDesktop", XtRBool, sizeof(Bool),
{"shareDesktop", "ShareDesktop", XtRBool, sizeof(Bool),
@@ -161,8 +2
87
,20 @@
@@ -161,8 +2
93
,20 @@
{"encodings", "Encodings", XtRString, sizeof(String),
{"encodings", "Encodings", XtRString, sizeof(String),
XtOffsetOf(AppData, encodingsString), XtRImmediate, (XtPointer) 0},
XtOffsetOf(AppData, encodingsString), XtRImmediate, (XtPointer) 0},
...
@@ -430,7 +442,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
...
@@ -430,7 +442,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
{"nColours", "NColours", XtRInt, sizeof(int),
{"nColours", "NColours", XtRInt, sizeof(int),
XtOffsetOf(AppData, nColours), XtRImmediate, (XtPointer) 256},
XtOffsetOf(AppData, nColours), XtRImmediate, (XtPointer) 256},
@@ -179,7 +3
17
,7 @@
@@ -179,7 +3
23
,7 @@
{"requestedDepth", "RequestedDepth", XtRInt, sizeof(int),
{"requestedDepth", "RequestedDepth", XtRInt, sizeof(int),
XtOffsetOf(AppData, requestedDepth), XtRImmediate, (XtPointer) 0},
XtOffsetOf(AppData, requestedDepth), XtRImmediate, (XtPointer) 0},
...
@@ -439,7 +451,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
...
@@ -439,7 +451,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
XtOffsetOf(AppData, useShm), XtRImmediate, (XtPointer) True},
XtOffsetOf(AppData, useShm), XtRImmediate, (XtPointer) True},
{"wmDecorationWidth", "WmDecorationWidth", XtRInt, sizeof(int),
{"wmDecorationWidth", "WmDecorationWidth", XtRInt, sizeof(int),
@@ -206,8 +3
44
,13 @@
@@ -206,8 +3
50
,13 @@
{"bumpScrollPixels", "BumpScrollPixels", XtRInt, sizeof(int),
{"bumpScrollPixels", "BumpScrollPixels", XtRInt, sizeof(int),
XtOffsetOf(AppData, bumpScrollPixels), XtRImmediate, (XtPointer) 20},
XtOffsetOf(AppData, bumpScrollPixels), XtRImmediate, (XtPointer) 20},
...
@@ -453,7 +465,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
...
@@ -453,7 +465,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
{"qualityLevel", "QualityLevel", XtRInt, sizeof(int),
{"qualityLevel", "QualityLevel", XtRInt, sizeof(int),
XtOffsetOf(AppData, qualityLevel), XtRImmediate, (XtPointer) 6},
XtOffsetOf(AppData, qualityLevel), XtRImmediate, (XtPointer) 6},
@@ -218,14 +36
1,49
@@
@@ -218,14 +36
7,52
@@
{"useRemoteCursor", "UseRemoteCursor", XtRBool, sizeof(Bool),
{"useRemoteCursor", "UseRemoteCursor", XtRBool, sizeof(Bool),
XtOffsetOf(AppData, useRemoteCursor), XtRImmediate, (XtPointer) True},
XtOffsetOf(AppData, useRemoteCursor), XtRImmediate, (XtPointer) True},
...
@@ -466,6 +478,9 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
...
@@ -466,6 +478,9 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
{"useX11Cursor", "UseX11Cursor", XtRBool, sizeof(Bool),
{"useX11Cursor", "UseX11Cursor", XtRBool, sizeof(Bool),
XtOffsetOf(AppData, useX11Cursor), XtRImmediate, (XtPointer) False},
XtOffsetOf(AppData, useX11Cursor), XtRImmediate, (XtPointer) False},
+ {"useBell", "UseBell", XtRBool, sizeof(Bool),
+ XtOffsetOf(AppData, useBell), XtRImmediate, (XtPointer) True},
+
{"grabKeyboard", "GrabKeyboard", XtRBool, sizeof(Bool),
{"grabKeyboard", "GrabKeyboard", XtRBool, sizeof(Bool),
- XtOffsetOf(AppData, grabKeyboard), XtRImmediate, (XtPointer) False},
- XtOffsetOf(AppData, grabKeyboard), XtRImmediate, (XtPointer) False},
+ XtOffsetOf(AppData, grabKeyboard), XtRImmediate, (XtPointer) True},
+ XtOffsetOf(AppData, grabKeyboard), XtRImmediate, (XtPointer) True},
...
@@ -505,7 +520,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
...
@@ -505,7 +520,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
};
};
@@ -243,7 +4
21
,20 @@
@@ -243,7 +4
30
,20 @@
{"-passwd", "*passwordFile", XrmoptionSepArg, 0},
{"-passwd", "*passwordFile", XrmoptionSepArg, 0},
{"-user", "*userLogin", XrmoptionSepArg, 0},
{"-user", "*userLogin", XrmoptionSepArg, 0},
{"-encodings", "*encodings", XrmoptionSepArg, 0},
{"-encodings", "*encodings", XrmoptionSepArg, 0},
...
@@ -527,11 +542,12 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
...
@@ -527,11 +542,12 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
{"-owncmap", "*forceOwnCmap", XrmoptionNoArg, "True"},
{"-owncmap", "*forceOwnCmap", XrmoptionNoArg, "True"},
{"-truecolor", "*forceTrueColour", XrmoptionNoArg, "True"},
{"-truecolor", "*forceTrueColour", XrmoptionNoArg, "True"},
{"-truecolour", "*forceTrueColour", XrmoptionNoArg, "True"},
{"-truecolour", "*forceTrueColour", XrmoptionNoArg, "True"},
@@ -253,7 +4
44,17
@@
@@ -253,7 +4
53,18
@@
{"-nojpeg", "*enableJPEG", XrmoptionNoArg, "False"},
{"-nojpeg", "*enableJPEG", XrmoptionNoArg, "False"},
{"-nocursorshape", "*useRemoteCursor", XrmoptionNoArg, "False"},
{"-nocursorshape", "*useRemoteCursor", XrmoptionNoArg, "False"},
{"-x11cursor", "*useX11Cursor", XrmoptionNoArg, "True"},
{"-x11cursor", "*useX11Cursor", XrmoptionNoArg, "True"},
- {"-autopass", "*autoPass", XrmoptionNoArg, "True"}
- {"-autopass", "*autoPass", XrmoptionNoArg, "True"}
+ {"-nobell", "*useBell", XrmoptionNoArg, "False"},
+ {"-autopass", "*autoPass", XrmoptionNoArg, "True"},
+ {"-autopass", "*autoPass", XrmoptionNoArg, "True"},
+ {"-graball", "*grabAll", XrmoptionNoArg, "True"},
+ {"-graball", "*grabAll", XrmoptionNoArg, "True"},
+ {"-grabkbd", "*grabKeyboard", XrmoptionNoArg, "True"},
+ {"-grabkbd", "*grabKeyboard", XrmoptionNoArg, "True"},
...
@@ -546,7 +562,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
...
@@ -546,7 +562,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
};
};
@@ -277,6 +4
78,41
@@
@@ -277,6 +4
88,43
@@
{"Pause", Pause},
{"Pause", Pause},
{"RunCommand", RunCommand},
{"RunCommand", RunCommand},
{"Quit", Quit},
{"Quit", Quit},
...
@@ -563,6 +579,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
...
@@ -563,6 +579,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
+ {"ToggleCursorShape", ToggleCursorShape},
+ {"ToggleCursorShape", ToggleCursorShape},
+ {"ToggleCursorAlpha", ToggleCursorAlpha},
+ {"ToggleCursorAlpha", ToggleCursorAlpha},
+ {"ToggleX11Cursor", ToggleX11Cursor},
+ {"ToggleX11Cursor", ToggleX11Cursor},
+ {"ToggleBell", ToggleBell},
+ {"ToggleRawLocal", ToggleRawLocal},
+ {"ToggleRawLocal", ToggleRawLocal},
+ {"ToggleServerInput", ToggleServerInput},
+ {"ToggleServerInput", ToggleServerInput},
+ {"ToggleSingleWindow", ToggleSingleWindow},
+ {"ToggleSingleWindow", ToggleSingleWindow},
...
@@ -581,6 +598,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
...
@@ -581,6 +598,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
+ {"SetCursorShapeState", SetCursorShapeState},
+ {"SetCursorShapeState", SetCursorShapeState},
+ {"SetCursorAlphaState", SetCursorAlphaState},
+ {"SetCursorAlphaState", SetCursorAlphaState},
+ {"SetX11CursorState", SetX11CursorState},
+ {"SetX11CursorState", SetX11CursorState},
+ {"SetBellState", SetBellState},
+ {"SetRawLocalState", SetRawLocalState},
+ {"SetRawLocalState", SetRawLocalState},
+ {"SetServerInputState", SetServerInputState},
+ {"SetServerInputState", SetServerInputState},
+ {"SetSingleWindowState", SetSingleWindowState},
+ {"SetSingleWindowState", SetSingleWindowState},
...
@@ -588,7 +606,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
...
@@ -588,7 +606,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
};
};
@@ -302,8 +5
38
,8 @@
@@ -302,8 +5
50
,8 @@
void
void
usage(void)
usage(void)
{
{
...
@@ -599,7 +617,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
...
@@ -599,7 +617,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
"\n"
"\n"
"Usage: %s [<OPTIONS>] [<HOST>][:<DISPLAY#>]\n"
"Usage: %s [<OPTIONS>] [<HOST>][:<DISPLAY#>]\n"
" %s [<OPTIONS>] [<HOST>][::<PORT#>]\n"
" %s [<OPTIONS>] [<HOST>][::<PORT#>]\n"
@@ -332,10 +5
68,110
@@
@@ -332,10 +5
80,112
@@
" -autopass\n"
" -autopass\n"
"\n"
"\n"
"Option names may be abbreviated, e.g. -bgr instead of -bgr233.\n"
"Option names may be abbreviated, e.g. -bgr instead of -bgr233.\n"
...
@@ -644,6 +662,8 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
...
@@ -644,6 +662,8 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
+ " default is very narrow: 2 pixels, it is narrow to\n"
+ " default is very narrow: 2 pixels, it is narrow to\n"
+ " avoid distraction in -ycrop mode.\n"
+ " avoid distraction in -ycrop mode.\n"
+ "\n"
+ "\n"
+ " -nobell Disable bell.\n"
+ "\n"
+ " -rawlocal Prefer raw encoding for localhost, default is\n"
+ " -rawlocal Prefer raw encoding for localhost, default is\n"
+ " no, i.e. assumes you have a SSH tunnel instead.\n"
+ " no, i.e. assumes you have a SSH tunnel instead.\n"
+ "\n"
+ "\n"
...
@@ -711,7 +731,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
...
@@ -711,7 +731,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
/*
/*
@@ -357,6 +
693
,23 @@
@@ -357,6 +
707
,23 @@
XtGetApplicationResources(toplevel, &appData, appDataResourceList,
XtGetApplicationResources(toplevel, &appData, appDataResourceList,
XtNumber(appDataResourceList), 0, 0);
XtNumber(appDataResourceList), 0, 0);
...
@@ -735,7 +755,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
...
@@ -735,7 +755,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/argsresources.c vnc_unixsrc/v
/* Add our actions to the actions table so they can be used in widget
/* Add our actions to the actions table so they can be used in widget
resource specs */
resource specs */
@@ -376,6 +7
29
,10 @@
@@ -376,6 +7
43
,10 @@
return;
return;
}
}
...
@@ -2968,7 +2988,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/popup_ad vnc_unixsrc/vncviewe
...
@@ -2968,7 +2988,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/popup_ad vnc_unixsrc/vncviewe
+}
+}
diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/rfbproto.c vnc_unixsrc/vncviewer/rfbproto.c
diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/rfbproto.c vnc_unixsrc/vncviewer/rfbproto.c
--- vnc_unixsrc.orig/vncviewer/rfbproto.c 2004-03-11 13:14:39.000000000 -0500
--- vnc_unixsrc.orig/vncviewer/rfbproto.c 2004-03-11 13:14:39.000000000 -0500
+++ vnc_unixsrc/vncviewer/rfbproto.c 2007-0
3-23 22:17:11
.000000000 -0400
+++ vnc_unixsrc/vncviewer/rfbproto.c 2007-0
4-06 19:38:37
.000000000 -0400
@@ -57,6 +57,25 @@
@@ -57,6 +57,25 @@
static Bool HandleTight16(int rx, int ry, int rw, int rh);
static Bool HandleTight16(int rx, int ry, int rw, int rh);
static Bool HandleTight32(int rx, int ry, int rw, int rh);
static Bool HandleTight32(int rx, int ry, int rw, int rh);
...
@@ -4865,7 +4885,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/rfbproto.c vnc_unixsrc/vncvie
...
@@ -4865,7 +4885,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/rfbproto.c vnc_unixsrc/vncvie
#ifdef MITSHM
#ifdef MITSHM
/* if using shared memory PutImage, make sure that the X server has
/* if using shared memory PutImage, make sure that the X server has
@@ -1224,59 +1601,1
38
@@
@@ -1224,59 +1601,1
40
@@
mainly to avoid copyrect using invalid screen contents - not sure
mainly to avoid copyrect using invalid screen contents - not sure
if we'd need it otherwise. */
if we'd need it otherwise. */
...
@@ -4896,18 +4916,20 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/rfbproto.c vnc_unixsrc/vncvie
...
@@ -4896,18 +4916,20 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/rfbproto.c vnc_unixsrc/vncvie
{
{
- Window toplevelWin;
- Window toplevelWin;
+ Window toplevelWin;
+ Window toplevelWin;
+
- XBell(dpy, 0);
+ if (appData.useBell) {
+ XBell(dpy, 0);
+ XBell(dpy, 0);
+ }
- if (appData.raiseOnBeep) {
- XBell(dpy, 0);
- toplevelWin = XtWindow(toplevel);
- XMapRaised(dpy, toplevelWin);
+ if (appData.raiseOnBeep) {
+ if (appData.raiseOnBeep) {
+ toplevelWin = XtWindow(toplevel);
+ toplevelWin = XtWindow(toplevel);
+ XMapRaised(dpy, toplevelWin);
+ XMapRaised(dpy, toplevelWin);
+ }
+ }
+
- if (appData.raiseOnBeep) {
- toplevelWin = XtWindow(toplevel);
- XMapRaised(dpy, toplevelWin);
+ break;
+ break;
}
}
...
@@ -5037,7 +5059,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/rfbproto.c vnc_unixsrc/vncvie
...
@@ -5037,7 +5059,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/rfbproto.c vnc_unixsrc/vncvie
}
}
@@ -1296,12 +175
2
,19 @@
@@ -1296,12 +175
4
,19 @@
#define CONCAT2(a,b) a##b
#define CONCAT2(a,b) a##b
#define CONCAT2E(a,b) CONCAT2(a,b)
#define CONCAT2E(a,b) CONCAT2(a,b)
...
@@ -5057,7 +5079,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/rfbproto.c vnc_unixsrc/vncvie
...
@@ -5057,7 +5079,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/rfbproto.c vnc_unixsrc/vncvie
#undef BPP
#undef BPP
#define BPP 16
#define BPP 16
#include "rre.c"
#include "rre.c"
@@ -1309,6 +177
2
,7 @@
@@ -1309,6 +177
4
,7 @@
#include "hextile.c"
#include "hextile.c"
#include "zlib.c"
#include "zlib.c"
#include "tight.c"
#include "tight.c"
...
@@ -5065,7 +5087,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/rfbproto.c vnc_unixsrc/vncvie
...
@@ -5065,7 +5087,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/rfbproto.c vnc_unixsrc/vncvie
#undef BPP
#undef BPP
#define BPP 32
#define BPP 32
#include "rre.c"
#include "rre.c"
@@ -1316,6 +178
0
,15 @@
@@ -1316,6 +178
2
,15 @@
#include "hextile.c"
#include "hextile.c"
#include "zlib.c"
#include "zlib.c"
#include "tight.c"
#include "tight.c"
...
@@ -5081,7 +5103,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/rfbproto.c vnc_unixsrc/vncvie
...
@@ -5081,7 +5103,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/rfbproto.c vnc_unixsrc/vncvie
#undef BPP
#undef BPP
/*
/*
@@ -1358,9 +183
1
,9 @@
@@ -1358,9 +183
3
,9 @@
" %s significant bit in each byte is leftmost on the screen.\n",
" %s significant bit in each byte is leftmost on the screen.\n",
(format->bigEndian ? "Most" : "Least"));
(format->bigEndian ? "Most" : "Least"));
} else {
} else {
...
@@ -5093,7 +5115,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/rfbproto.c vnc_unixsrc/vncvie
...
@@ -5093,7 +5115,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/rfbproto.c vnc_unixsrc/vncvie
(format->bigEndian ? "Most" : "Least"));
(format->bigEndian ? "Most" : "Least"));
}
}
if (format->trueColour) {
if (format->trueColour) {
@@ -1463,3 +193
6
,115 @@
@@ -1463,3 +193
8
,115 @@
cinfo->src = &jpegSrcManager;
cinfo->src = &jpegSrcManager;
}
}
...
@@ -6038,7 +6060,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer._man vnc_unixsrc/vn
...
@@ -6038,7 +6060,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer._man vnc_unixsrc/vn
+Constantin Kaplinsky <const@ce.cctpu.edu.ru>
+Constantin Kaplinsky <const@ce.cctpu.edu.ru>
diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.c vnc_unixsrc/vncviewer/vncviewer.c
diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.c vnc_unixsrc/vncviewer/vncviewer.c
--- vnc_unixsrc.orig/vncviewer/vncviewer.c 2004-01-13 09:22:05.000000000 -0500
--- vnc_unixsrc.orig/vncviewer/vncviewer.c 2004-01-13 09:22:05.000000000 -0500
+++ vnc_unixsrc/vncviewer/vncviewer.c 2007-0
2-18 18:45:43.000000000 -05
00
+++ vnc_unixsrc/vncviewer/vncviewer.c 2007-0
4-10 14:14:58.000000000 -04
00
@@ -22,6 +22,7 @@
@@ -22,6 +22,7 @@
*/
*/
...
@@ -6097,7 +6119,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.c vnc_unixsrc/vncvi
...
@@ -6097,7 +6119,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.c vnc_unixsrc/vncvi
/* The -listen option is used to make us a daemon process which listens for
/* The -listen option is used to make us a daemon process which listens for
incoming connections from servers, rather than actively connecting to a
incoming connections from servers, rather than actively connecting to a
@@ -45,89 +82,7
18
@@
@@ -45,89 +82,7
43
@@
listenForIncomingConnections() returns, setting the listenSpecified
listenForIncomingConnections() returns, setting the listenSpecified
flag. */
flag. */
...
@@ -6157,7 +6179,11 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.c vnc_unixsrc/vncvi
...
@@ -6157,7 +6179,11 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.c vnc_unixsrc/vncvi
+ }
+ }
+ }
+ }
+ save_sbw = appData.sbWidth;
+ save_sbw = appData.sbWidth;
+ if (save_sbw > 0) {
+ set_sbwidth(save_sbw);
+ } else {
+ set_sbwidth(6);
+ set_sbwidth(6);
+ }
+
+
+ toplevel = XtVaAppInitialize(&appContext, "Vncviewer", cmdLineOptions,
+ toplevel = XtVaAppInitialize(&appContext, "Vncviewer", cmdLineOptions,
+ numCmdLineOptions, &argc, argv, fallback_resources,
+ numCmdLineOptions, &argc, argv, fallback_resources,
...
@@ -6553,6 +6579,18 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.c vnc_unixsrc/vncvi
...
@@ -6553,6 +6579,18 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.c vnc_unixsrc/vncvi
+}
+}
+
+
+void
+void
+ToggleBell(Widget w, XEvent *ev, String *params, Cardinal *num_params)
+{
+ if (appData.useBell) {
+ appData.useBell = False;
+ fprintf(stderr, "useBell: off\n");
+ } else {
+ appData.useBell = True;
+ fprintf(stderr, "useBell: on\n");
+ }
+}
+
+void
+ToggleRawLocal(Widget w, XEvent *ev, String *params, Cardinal *num_params)
+ToggleRawLocal(Widget w, XEvent *ev, String *params, Cardinal *num_params)
+{
+{
+ init_format_change();
+ init_format_change();
...
@@ -6640,8 +6678,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.c vnc_unixsrc/vncvi
...
@@ -6640,8 +6678,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.c vnc_unixsrc/vncvi
+ }
+ }
+ }
+ }
+}
+}
+
- return 0;
+void
+void
+DoServerScale(Widget w, XEvent *ev, String *params, Cardinal *num_params)
+DoServerScale(Widget w, XEvent *ev, String *params, Cardinal *num_params)
+{
+{
...
@@ -6753,7 +6790,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.c vnc_unixsrc/vncvi
...
@@ -6753,7 +6790,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.c vnc_unixsrc/vncvi
+ } else {
+ } else {
+ XtVaSetValues(w, XtNstate, False, NULL);
+ XtVaSetValues(w, XtNstate, False, NULL);
+ }
+ }
}
+
}
+
+
+void
+void
+Set8ColorsState(Widget w, XEvent *ev, String *params, Cardinal *num_params)
+Set8ColorsState(Widget w, XEvent *ev, String *params, Cardinal *num_params)
...
@@ -6814,6 +6851,15 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.c vnc_unixsrc/vncvi
...
@@ -6814,6 +6851,15 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.c vnc_unixsrc/vncvi
+}
+}
+
+
+void
+void
+SetBellState(Widget w, XEvent *ev, String *params, Cardinal *num_params)
+{
+ if (appData.useBell)
+ XtVaSetValues(w, XtNstate, False, NULL);
+ else
+ XtVaSetValues(w, XtNstate, True, NULL);
+}
+
+void
+SetRawLocalState(Widget w, XEvent *ev, String *params, Cardinal *num_params)
+SetRawLocalState(Widget w, XEvent *ev, String *params, Cardinal *num_params)
+{
+{
+ if (appData.useRawLocal)
+ if (appData.useRawLocal)
...
@@ -6830,7 +6876,8 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.c vnc_unixsrc/vncvi
...
@@ -6830,7 +6876,8 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.c vnc_unixsrc/vncvi
+ else
+ else
+ XtVaSetValues(w, XtNstate, False, NULL);
+ XtVaSetValues(w, XtNstate, False, NULL);
+}
+}
+
- return 0;
+void
+void
+SetSingleWindowState(Widget w, XEvent *ev, String *params, Cardinal *num_params)
+SetSingleWindowState(Widget w, XEvent *ev, String *params, Cardinal *num_params)
+{
+{
...
@@ -6847,15 +6894,15 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.c vnc_unixsrc/vncvi
...
@@ -6847,15 +6894,15 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.c vnc_unixsrc/vncvi
+ XtVaSetValues(w, XtNstate, True, NULL);
+ XtVaSetValues(w, XtNstate, True, NULL);
+ else
+ else
+ XtVaSetValues(w, XtNstate, False, NULL);
+ XtVaSetValues(w, XtNstate, False, NULL);
+
}
}
+
+
+
+
+
+
+
+
diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.h vnc_unixsrc/vncviewer/vncviewer.h
diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.h vnc_unixsrc/vncviewer/vncviewer.h
--- vnc_unixsrc.orig/vncviewer/vncviewer.h 2004-03-11 13:14:40.000000000 -0500
--- vnc_unixsrc.orig/vncviewer/vncviewer.h 2004-03-11 13:14:40.000000000 -0500
+++ vnc_unixsrc/vncviewer/vncviewer.h 2007-0
3-22 20:54:06
.000000000 -0400
+++ vnc_unixsrc/vncviewer/vncviewer.h 2007-0
4-05 23:09:03
.000000000 -0400
@@ -68,51 +68,
69
@@
@@ -68,51 +68,
70
@@
/* argsresources.c */
/* argsresources.c */
typedef struct {
typedef struct {
...
@@ -6952,6 +6999,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.h vnc_unixsrc/vncvi
...
@@ -6952,6 +6999,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.h vnc_unixsrc/vncvi
+ Bool enableJPEG;
+ Bool enableJPEG;
+ Bool useRemoteCursor;
+ Bool useRemoteCursor;
+ Bool useX11Cursor;
+ Bool useX11Cursor;
+ Bool useBell;
+ Bool autoPass;
+ Bool autoPass;
+
+
+ Bool serverInput;
+ Bool serverInput;
...
@@ -6966,7 +7014,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.h vnc_unixsrc/vncvi
...
@@ -6966,7 +7014,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.h vnc_unixsrc/vncvi
extern char *fallback_resources[];
extern char *fallback_resources[];
extern char vncServerHost[];
extern char vncServerHost[];
@@ -130,10 +14
8
,11 @@
@@ -130,10 +14
9
,11 @@
/* colour.c */
/* colour.c */
extern unsigned long BGR233ToPixel[];
extern unsigned long BGR233ToPixel[];
...
@@ -6979,7 +7027,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.h vnc_unixsrc/vncvi
...
@@ -6979,7 +7027,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.h vnc_unixsrc/vncvi
extern void SetVisualAndCmap();
extern void SetVisualAndCmap();
@@ -160,8 +1
79
,14 @@
@@ -160,8 +1
80
,14 @@
extern void SendRFBEvent(Widget w, XEvent *event, String *params,
extern void SendRFBEvent(Widget w, XEvent *event, String *params,
Cardinal *num_params);
Cardinal *num_params);
extern void CopyDataToScreen(char *buf, int x, int y, int width, int height);
extern void CopyDataToScreen(char *buf, int x, int y, int width, int height);
...
@@ -6994,7 +7042,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.h vnc_unixsrc/vncvi
...
@@ -6994,7 +7042,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.h vnc_unixsrc/vncvi
/* dialogs.c */
/* dialogs.c */
extern void ServerDialogDone(Widget w, XEvent *event, String *params,
extern void ServerDialogDone(Widget w, XEvent *event, String *params,
@@ -229,6 +25
4
,15 @@
@@ -229,6 +25
5
,15 @@
extern Bool SendClientCutText(char *str, int len);
extern Bool SendClientCutText(char *str, int len);
extern Bool HandleRFBServerMessage();
extern Bool HandleRFBServerMessage();
...
@@ -7010,7 +7058,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.h vnc_unixsrc/vncvi
...
@@ -7010,7 +7058,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.h vnc_unixsrc/vncvi
extern void PrintPixelFormat(rfbPixelFormat *format);
extern void PrintPixelFormat(rfbPixelFormat *format);
/* selection.c */
/* selection.c */
@@ -241,8 +27
5
,9 @@
@@ -241,8 +27
6
,9 @@
/* shm.c */
/* shm.c */
...
@@ -7021,7 +7069,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.h vnc_unixsrc/vncvi
...
@@ -7021,7 +7069,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.h vnc_unixsrc/vncvi
/* sockets.c */
/* sockets.c */
@@ -271,3 +30
6,42
@@
@@ -271,3 +30
7,44
@@
extern XtAppContext appContext;
extern XtAppContext appContext;
extern Display* dpy;
extern Display* dpy;
extern Widget toplevel;
extern Widget toplevel;
...
@@ -7041,6 +7089,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.h vnc_unixsrc/vncvi
...
@@ -7041,6 +7089,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.h vnc_unixsrc/vncvi
+extern void ToggleCursorShape(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void ToggleCursorShape(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void ToggleCursorAlpha(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void ToggleCursorAlpha(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void ToggleX11Cursor(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void ToggleX11Cursor(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void ToggleBell(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void ToggleRawLocal(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void ToggleRawLocal(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void ToggleServerInput(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void ToggleServerInput(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void ToggleSingleWindow(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void ToggleSingleWindow(Widget w, XEvent *ev, String *params, Cardinal *num_params);
...
@@ -7060,6 +7109,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.h vnc_unixsrc/vncvi
...
@@ -7060,6 +7109,7 @@ diff -Naur -X ./exclude vnc_unixsrc.orig/vncviewer/vncviewer.h vnc_unixsrc/vncvi
+extern void SetCursorShapeState(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void SetCursorShapeState(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void SetCursorAlphaState(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void SetCursorAlphaState(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void SetX11CursorState(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void SetX11CursorState(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void SetBellState(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void SetRawLocalState(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void SetRawLocalState(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void SetServerInputState(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void SetServerInputState(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void SetSingleWindowState(Widget w, XEvent *ev, String *params, Cardinal *num_params);
+extern void SetSingleWindowState(Widget w, XEvent *ev, String *params, Cardinal *num_params);
...
...
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