Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
N
noVNC
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
noVNC
Commits
76e26213
Commit
76e26213
authored
Aug 29, 2013
by
samhed
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
* Removed fbu-requests from the places I missed earlier.
* Added a few clarifying comments.
parent
7e24f50b
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
6 deletions
+2
-6
rfb.js
include/rfb.js
+2
-6
No files found.
include/rfb.js
View file @
76e26213
...
@@ -595,7 +595,6 @@ mouseButton = function(x, y, down, bmask) {
...
@@ -595,7 +595,6 @@ mouseButton = function(x, y, down, bmask) {
return
;
return
;
}
else
{
}
else
{
viewportDragging
=
false
;
viewportDragging
=
false
;
ws
.
send
(
fbUpdateRequests
());
// Force immediate redraw
}
}
}
}
...
@@ -873,7 +872,7 @@ init_msg = function() {
...
@@ -873,7 +872,7 @@ init_msg = function() {
response
=
pixelFormat
();
response
=
pixelFormat
();
response
=
response
.
concat
(
clientEncodings
());
response
=
response
.
concat
(
clientEncodings
());
response
=
response
.
concat
(
fbUpdateRequests
());
response
=
response
.
concat
(
fbUpdateRequests
());
// initial fbu-request
timing
.
fbu_rt_start
=
(
new
Date
()).
getTime
();
timing
.
fbu_rt_start
=
(
new
Date
()).
getTime
();
timing
.
pixels
=
0
;
timing
.
pixels
=
0
;
ws
.
send
(
response
);
ws
.
send
(
response
);
...
@@ -907,6 +906,7 @@ normal_msg = function() {
...
@@ -907,6 +906,7 @@ normal_msg = function() {
case
0
:
// FramebufferUpdate
case
0
:
// FramebufferUpdate
ret
=
framebufferUpdate
();
// false means need more data
ret
=
framebufferUpdate
();
// false means need more data
if
(
ret
)
{
if
(
ret
)
{
// only allow one outstanding fbu-request at a time
ws
.
send
(
fbUpdateRequests
());
ws
.
send
(
fbUpdateRequests
());
}
}
break
;
break
;
...
@@ -1571,8 +1571,6 @@ encHandlers.DesktopSize = function set_desktopsize() {
...
@@ -1571,8 +1571,6 @@ encHandlers.DesktopSize = function set_desktopsize() {
conf
.
onFBResize
(
that
,
fb_width
,
fb_height
);
conf
.
onFBResize
(
that
,
fb_width
,
fb_height
);
display
.
resize
(
fb_width
,
fb_height
);
display
.
resize
(
fb_width
,
fb_height
);
timing
.
fbu_rt_start
=
(
new
Date
()).
getTime
();
timing
.
fbu_rt_start
=
(
new
Date
()).
getTime
();
// Send a new non-incremental request
ws
.
send
(
fbUpdateRequests
());
FBU
.
bytes
=
0
;
FBU
.
bytes
=
0
;
FBU
.
rects
-=
1
;
FBU
.
rects
-=
1
;
...
@@ -1798,7 +1796,6 @@ that.sendCtrlAltDel = function() {
...
@@ -1798,7 +1796,6 @@ that.sendCtrlAltDel = function() {
arr
=
arr
.
concat
(
keyEvent
(
0xFFFF
,
0
));
// Delete
arr
=
arr
.
concat
(
keyEvent
(
0xFFFF
,
0
));
// Delete
arr
=
arr
.
concat
(
keyEvent
(
0xFFE9
,
0
));
// Alt
arr
=
arr
.
concat
(
keyEvent
(
0xFFE9
,
0
));
// Alt
arr
=
arr
.
concat
(
keyEvent
(
0xFFE3
,
0
));
// Control
arr
=
arr
.
concat
(
keyEvent
(
0xFFE3
,
0
));
// Control
arr
=
arr
.
concat
(
fbUpdateRequests
());
ws
.
send
(
arr
);
ws
.
send
(
arr
);
};
};
...
@@ -1815,7 +1812,6 @@ that.sendKey = function(code, down) {
...
@@ -1815,7 +1812,6 @@ that.sendKey = function(code, down) {
arr
=
arr
.
concat
(
keyEvent
(
code
,
1
));
arr
=
arr
.
concat
(
keyEvent
(
code
,
1
));
arr
=
arr
.
concat
(
keyEvent
(
code
,
0
));
arr
=
arr
.
concat
(
keyEvent
(
code
,
0
));
}
}
arr
=
arr
.
concat
(
fbUpdateRequests
());
ws
.
send
(
arr
);
ws
.
send
(
arr
);
};
};
...
...
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