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
cf9d3943
Commit
cf9d3943
authored
Sep 14, 2012
by
Joel Martin
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
rfb.js: add onFBResize event callback.
parent
c67d032b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
0 deletions
+4
-0
rfb.js
include/rfb.js
+4
-0
No files found.
include/rfb.js
View file @
cf9d3943
...
@@ -163,6 +163,8 @@ Util.conf_defaults(conf, that, defaults, [
...
@@ -163,6 +163,8 @@ Util.conf_defaults(conf, that, defaults, [
'onFBUReceive(rfb, fbu): RFB FBU received but not yet processed '
],
'onFBUReceive(rfb, fbu): RFB FBU received but not yet processed '
],
[
'onFBUComplete'
,
'rw'
,
'func'
,
function
()
{
},
[
'onFBUComplete'
,
'rw'
,
'func'
,
function
()
{
},
'onFBUComplete(rfb, fbu): RFB FBU received and processed '
],
'onFBUComplete(rfb, fbu): RFB FBU received and processed '
],
[
'onFBResize'
,
'rw'
,
'func'
,
function
()
{
},
'onFBResize(rfb, width, height): frame buffer resized'
],
// These callback names are deprecated
// These callback names are deprecated
[
'updateState'
,
'rw'
,
'func'
,
function
()
{
},
[
'updateState'
,
'rw'
,
'func'
,
function
()
{
},
...
@@ -878,6 +880,7 @@ init_msg = function() {
...
@@ -878,6 +880,7 @@ init_msg = function() {
}
}
display
.
set_true_color
(
conf
.
true_color
);
display
.
set_true_color
(
conf
.
true_color
);
conf
.
onFBResize
(
that
,
fb_width
,
fb_height
);
display
.
resize
(
fb_width
,
fb_height
);
display
.
resize
(
fb_width
,
fb_height
);
keyboard
.
grab
();
keyboard
.
grab
();
mouse
.
grab
();
mouse
.
grab
();
...
@@ -1577,6 +1580,7 @@ encHandlers.DesktopSize = function set_desktopsize() {
...
@@ -1577,6 +1580,7 @@ encHandlers.DesktopSize = function set_desktopsize() {
Util
.
Debug
(
">> set_desktopsize"
);
Util
.
Debug
(
">> set_desktopsize"
);
fb_width
=
FBU
.
width
;
fb_width
=
FBU
.
width
;
fb_height
=
FBU
.
height
;
fb_height
=
FBU
.
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
// Send a new non-incremental request
...
...
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