This mapping has 4 multi-map groups: several pairings are equally correct there. The code view shows one arbitrary valid pairing, not the only one.

Before

…lines 1–3373 unchanged (3373 lines)
3374 const wid = packet[1];
3375 let x = packet[2];
3376 let y = packet[3];
3377 const win = this.id_to_window[wid];
3378 //we can use window relative coordinates:
3379 if (packet.length >= 6 && win) {
3380 const pos = jQuery(win.div).position();
3381 x = pos.left + packet[4];
3382 y = pos.top + packet[5];
3383 }
3384 const shadow_pointer = document.querySelector("#shadow_pointer");
3385 const style = shadow_pointer.style;
3386 let cursor_url;
3387 let w;
3388 let h;
…lines 3389–4975 unchanged (1587 lines)

After

…lines 1–3373 unchanged (3373 lines)
3374 const wid = packet[1];
3375 let x = packet[2];
3376 let y = packet[3];
3377 const win = this.id_to_window[wid];
3378 //we can use window relative coordinates:
3379 if (packet.length >= 6 && win) {
3380 const pos = win.get_internal_geometry();
3381 x = pos.x + packet[4];
3382 y = pos.y + packet[5];
3383 }
3384 const shadow_pointer = document.querySelector("#shadow_pointer");
3385 const style = shadow_pointer.style;
3386 let cursor_url;
3387 let w;
3388 let h;
…lines 3389–4975 unchanged (1587 lines)

Before

program
comment "/*\n * Copyright (c) 2013 Antoine Martin <antoine@xpra.org>\n "...
lexical_declaration
const "const"
variable_declarator
identifier "WORKER"
= "="
call_expression
identifier "Boolean"
arguments
( "("
member_expression
identifier "window"
. "."
property_identifier "Worker"
) ")"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "CLIPBOARD_IMAGES"
= "="
true "true"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "CLIPBOARD_EVENT_DELAY"
= "="
number "100"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "DECODE_WORKER"
= "="
binary_expression
identifier "WORKER"
&& "&&"
unary_expression
! "!"
unary_expression
! "!"
member_expression
identifier "window"
. "."
property_identifier "createImageBitmap"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "SHOW_START_MENU"
= "="
true "true"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "FILE_SIZE_LIMIT"
= "="
binary_expression
binary_expression
binary_expression
number "4"
* "*"
number "1024"
* "*"
number "1024"
* "*"
number "1024"
; ";"
comment "//are we even allowed to allocate this much memory?"
lexical_declaration
const "const"
variable_declarator
identifier "FILE_CHUNKS_SIZE"
= "="
binary_expression
number "128"
* "*"
number "1024"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "MAX_CONCURRENT_FILES"
= "="
number "5"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "CHUNK_TIMEOUT"
= "="
binary_expression
number "10"
* "*"
number "1000"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "MODAL_FOCUS"
= "="
true "true"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "TEXT_PLAIN"
= "="
string
" "\""
string_fragment "text/plain"
" "\""
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "UTF8_STRING"
= "="
string
" "\""
string_fragment "UTF8_STRING"
" "\""
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "TEXT_HTML"
= "="
string
" "\""
string_fragment "text/html"
" "\""
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "FLOAT_MENU_SELECTOR"
= "="
string
" "\""
string_fragment "#float_menu"
" "\""
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "PASTEBOARD_SELECTOR"
= "="
string
" "\""
string_fragment "#pasteboard"
" "\""
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "WINDOW_PREVIEW_SELECTOR"
= "="
string
" "\""
string_fragment "#window_preview"
" "\""
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "BELL_SOUND"
= "="
string
" "\""
string_fragment "data:audio/wav;base64,//uQRAAAAWMSLwUIYAAsYkXgoQwAEaYLWfkWgA"...
" "\""
; ";"
lexical_declaration (+54 nodes collapsed)
lexical_declaration (+88 nodes collapsed)
comment "// This option adds the CSS class .gpu-trigger to the window"...
comment "// The article at https://www.urbaninsight.com/article/impro"...
comment "// states that adding 'transform: transale3d(0,0,0);' is the"...
lexical_declaration
const "const"
variable_declarator
identifier "TRY_GPU_TRIGGER"
= "="
true "true"
; ";"
function_declaration (+79 nodes collapsed)
class_declaration
class "class"
identifier "XpraClient"
class_body
{ "{"
method_definition (+144 nodes collapsed)
method_definition (+473 nodes collapsed)
method_definition (+636 nodes collapsed)
method_definition (+1201 nodes collapsed)
method_definition (+72 nodes collapsed)
method_definition (+183 nodes collapsed)
method_definition (+115 nodes collapsed)
method_definition (+40 nodes collapsed)
method_definition (+24 nodes collapsed)
method_definition (+40 nodes collapsed)
method_definition (+24 nodes collapsed)
method_definition (+40 nodes collapsed)
method_definition (+24 nodes collapsed)
method_definition (+98 nodes collapsed)
method_definition (+24 nodes collapsed)
method_definition (+178 nodes collapsed)
method_definition (+580 nodes collapsed)
method_definition (+27 nodes collapsed)
method_definition (+48 nodes collapsed)
method_definition (+137 nodes collapsed)
method_definition (+876 nodes collapsed)
method_definition (+219 nodes collapsed)
method_definition (+61 nodes collapsed)
method_definition (+47 nodes collapsed)
method_definition (+104 nodes collapsed)
method_definition (+31 nodes collapsed)
method_definition (+64 nodes collapsed)
method_definition (+124 nodes collapsed)
method_definition (+35 nodes collapsed)
method_definition (+47 nodes collapsed)
method_definition (+126 nodes collapsed)
method_definition (+465 nodes collapsed)
comment "/**\n * Keyboard\n */"
method_definition (+668 nodes collapsed)
method_definition (+216 nodes collapsed)
method_definition (+35 nodes collapsed)
method_definition (+442 nodes collapsed)
method_definition (+286 nodes collapsed)
method_definition (+1814 nodes collapsed)
method_definition (+23 nodes collapsed)
method_definition (+23 nodes collapsed)
method_definition (+59 nodes collapsed)
method_definition (+78 nodes collapsed)
method_definition (+23 nodes collapsed)
method_definition (+120 nodes collapsed)
method_definition (+331 nodes collapsed)
method_definition (+37 nodes collapsed)
comment "/**\n * Ping\n */"
method_definition (+138 nodes collapsed)
method_definition (+132 nodes collapsed)
method_definition (+53 nodes collapsed)
method_definition (+23 nodes collapsed)
method_definition (+23 nodes collapsed)
comment "/**\n * Hello\n */"
method_definition (+130 nodes collapsed)
method_definition (+333 nodes collapsed)
method_definition (+431 nodes collapsed)
method_definition (+368 nodes collapsed)
method_definition (+92 nodes collapsed)
method_definition (+44 nodes collapsed)
method_definition (+205 nodes collapsed)
method_definition (+57 nodes collapsed)
method_definition (+140 nodes collapsed)
method_definition (+192 nodes collapsed)
method_definition (+202 nodes collapsed)
method_definition (+46 nodes collapsed)
method_definition (+68 nodes collapsed)
method_definition (+48 nodes collapsed)
method_definition (+39 nodes collapsed)
method_definition (+23 nodes collapsed)
method_definition (+362 nodes collapsed)
method_definition
property_identifier "_get_encoding_caps"
formal_parameters
( "("
) ")"
statement_block
{ "{"
return_statement
return "return"
member_expression
this "this"
. "."
property_identifier "encoding_options"
; ";"
} "}"
method_definition
property_identifier "on_first_ui_event"
formal_parameters
( "("
) ")"
statement_block
{ "{"
comment "//this hook can be overriden"
} "}"
method_definition (+41 nodes collapsed)
comment "/**\n * Mouse handlers\n */"
method_definition (+414 nodes collapsed)
method_definition (+50 nodes collapsed)
method_definition (+41 nodes collapsed)
method_definition (+310 nodes collapsed)
method_definition (+225 nodes collapsed)
method_definition (+720 nodes collapsed)
method_definition (+97 nodes collapsed)
comment "// Source: https://deepmikoto.com/coding/1--javascript-detec"...
method_definition (+133 nodes collapsed)
method_definition (+990 nodes collapsed)
method_definition (+753 nodes collapsed)
method_definition (+389 nodes collapsed)
method_definition (+55 nodes collapsed)
method_definition (+367 nodes collapsed)
method_definition (+236 nodes collapsed)
method_definition (+236 nodes collapsed)
comment "/**\n * Focus\n */"
method_definition (+576 nodes collapsed)
comment "/*\n * detect DESKTOP-type window from settings\n */"
method_definition (+99 nodes collapsed)
comment "/*\n * Show/Hide the window preview list\n */"
method_definition (+985 nodes collapsed)
comment "/*\n * Handle closing of window list if clickout outside of"...
method_definition (+202 nodes collapsed)
comment "/*\n * packet processing functions start here\n */"
method_definition
property_identifier "on_open"
formal_parameters
( "("
) ")"
statement_block
{ "{"
comment "//this hook can be overriden"
} "}"
method_definition (+60 nodes collapsed)
method_definition (+130 nodes collapsed)
method_definition (+40 nodes collapsed)
method_definition (+66 nodes collapsed)
method_definition (+40 nodes collapsed)
method_definition (+206 nodes collapsed)
method_definition (+163 nodes collapsed)
method_definition (+137 nodes collapsed)
method_definition (+162 nodes collapsed)
method_definition (+34 nodes collapsed)
method_definition (+132 nodes collapsed)
method_definition (+86 nodes collapsed)
method_definition (+33 nodes collapsed)
method_definition (+90 nodes collapsed)
method_definition (+1369 nodes collapsed)
method_definition (+215 nodes collapsed)
method_definition (+246 nodes collapsed)
method_definition (+418 nodes collapsed)
method_definition (+44 nodes collapsed)
method_definition (+889 nodes collapsed)
method_definition (+155 nodes collapsed)
method_definition (+143 nodes collapsed)
method_definition
property_identifier "on_connect"
formal_parameters
( "("
) ")"
statement_block
{ "{"
comment "//this hook can be overriden"
} "}"
method_definition (+563 nodes collapsed)
method_definition (+51 nodes collapsed)
method_definition (+503 nodes collapsed)
method_definition (+142 nodes collapsed)
method_definition (+158 nodes collapsed)
method_definition (+135 nodes collapsed)
comment "/**\n * Info\n */"
method_definition (+71 nodes collapsed)
method_definition (+64 nodes collapsed)
method_definition (+114 nodes collapsed)
method_definition (+49 nodes collapsed)
comment "/**\n * System Tray forwarding\n */"
method_definition (+309 nodes collapsed)
method_definition (+483 nodes collapsed)
method_definition (+153 nodes collapsed)
method_definition (+146 nodes collapsed)
method_definition (+128 nodes collapsed)
method_definition (+119 nodes collapsed)
method_definition (+61 nodes collapsed)
comment "/**\n * Windows\n */"
method_definition (+429 nodes collapsed)
method_definition (+425 nodes collapsed)
method_definition (+95 nodes collapsed)
method_definition (+22 nodes collapsed)
method_definition (+22 nodes collapsed)
method_definition (+65 nodes collapsed)
method_definition (+205 nodes collapsed)
method_definition
property_identifier "_process_pointer_position"
formal_parameters
( "("
identifier "packet"
) ")"
statement_block
{ "{"
lexical_declaration
const "const"
variable_declarator
identifier "wid"
= "="
subscript_expression
identifier "packet"
[ "["
number "1"
] "]"
; ";"
lexical_declaration
let "let"
variable_declarator
identifier "x"
= "="
subscript_expression
identifier "packet"
[ "["
number "2"
] "]"
; ";"
lexical_declaration
let "let"
variable_declarator
identifier "y"
= "="
subscript_expression
identifier "packet"
[ "["
number "3"
] "]"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "win"
= "="
subscript_expression
member_expression
this "this"
. "."
property_identifier "id_to_window"
[ "["
identifier "wid"
] "]"
; ";"
comment "//we can use window relative coordinates:"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
binary_expression
member_expression
identifier "packet"
. "."
property_identifier "length"
>= ">="
number "6"
&& "&&"
identifier "win"
) ")"
statement_block
{ "{"
lexical_declaration
const "const"
variable_declarator
identifier "pos"
= "="
call_expression
member_expression
call_expression
identifier "jQuery"
arguments any 2:1
( "(" any 2:1
member_expression
identifier "win"
. "."
property_identifier "div" any 2:1
) ")" any 2:1
. "."
property_identifier "position" any 2:1
arguments any 2:1
( "(" any 2:1
) ")" any 2:1
; ";"
expression_statement
assignment_expression
identifier "x"
= "="
binary_expression
member_expression
identifier "pos"
. "."
property_identifier "left"
+ "+"
subscript_expression
identifier "packet"
[ "["
number "4"
] "]"
; ";"
expression_statement
assignment_expression
identifier "y"
= "="
binary_expression
member_expression
identifier "pos"
. "."
property_identifier "top"
+ "+"
subscript_expression
identifier "packet"
[ "["
number "5"
] "]"
; ";"
} "}"
lexical_declaration
const "const"
variable_declarator
identifier "shadow_pointer"
= "="
call_expression
member_expression
identifier "document"
. "."
property_identifier "querySelector"
arguments
( "("
string
" "\""
string_fragment "#shadow_pointer"
" "\""
) ")"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "style"
= "="
member_expression
identifier "shadow_pointer"
. "."
property_identifier "style"
; ";"
lexical_declaration
let "let"
variable_declarator
identifier "cursor_url"
; ";"
lexical_declaration
let "let"
variable_declarator
identifier "w"
; ";"
lexical_declaration
let "let"
variable_declarator
identifier "h"
; ";"
lexical_declaration
let "let"
variable_declarator
identifier "xhot"
; ";"
lexical_declaration
let "let"
variable_declarator
identifier "yhot"
; ";"
if_statement (+115 nodes collapsed)
expression_statement
augmented_assignment_expression
identifier "x"
-= "-="
identifier "xhot"
; ";"
expression_statement
augmented_assignment_expression
identifier "y"
-= "-="
identifier "yhot"
; ";"
expression_statement
assignment_expression
member_expression
identifier "style"
. "."
property_identifier "width"
= "="
template_string
` "`"
template_substitution
${ "${"
identifier "w"
} "}"
string_fragment "px"
` "`"
; ";"
expression_statement
assignment_expression
member_expression
identifier "style"
. "."
property_identifier "height"
= "="
template_string
` "`"
template_substitution
${ "${"
identifier "h"
} "}"
string_fragment "px"
` "`"
; ";"
expression_statement
assignment_expression
member_expression
identifier "shadow_pointer"
. "."
property_identifier "src"
= "="
identifier "cursor_url"
; ";"
expression_statement
assignment_expression
member_expression
identifier "style"
. "."
property_identifier "left"
= "="
template_string
` "`"
template_substitution
${ "${"
identifier "x"
} "}"
string_fragment "px"
` "`"
; ";"
expression_statement
assignment_expression
member_expression
identifier "style"
. "."
property_identifier "top"
= "="
template_string
` "`"
template_substitution
${ "${"
identifier "y"
} "}"
string_fragment "px"
` "`"
; ";"
expression_statement
assignment_expression
member_expression
identifier "style"
. "."
property_identifier "display"
= "="
string
" "\""
string_fragment "inline"
" "\""
; ";"
} "}"
method_definition
property_identifier "on_last_window"
formal_parameters
( "("
) ")"
statement_block
{ "{"
comment "//this hook can be overriden"
} "}"
method_definition (+288 nodes collapsed)
method_definition (+242 nodes collapsed)
method_definition (+45 nodes collapsed)
method_definition (+78 nodes collapsed)
method_definition (+52 nodes collapsed)
method_definition (+52 nodes collapsed)
method_definition
property_identifier "_process_desktop_size"
formal_parameters
( "("
identifier "packet"
) ")"
statement_block
{ "{"
comment "//we don't use this yet,"
comment "//we could use this to clamp the windows to a certain area"
} "}"
method_definition (+220 nodes collapsed)
comment "/**\n * Notifications\n */"
method_definition (+599 nodes collapsed)
method_definition (+43 nodes collapsed)
comment "/**\n * Cursors\n */"
method_definition (+46 nodes collapsed)
method_definition (+189 nodes collapsed)
method_definition (+195 nodes collapsed)
comment "/**\n * Window Painting\n */"
method_definition (+155 nodes collapsed)
method_definition (+70 nodes collapsed)
method_definition (+257 nodes collapsed)
method_definition (+122 nodes collapsed)
method_definition (+107 nodes collapsed)
method_definition (+632 nodes collapsed)
comment "/**\n * Audio\n */"
method_definition (+611 nodes collapsed)
method_definition (+235 nodes collapsed)
method_definition (+57 nodes collapsed)
method_definition (+37 nodes collapsed)
method_definition (+827 nodes collapsed)
method_definition (+44 nodes collapsed)
method_definition (+98 nodes collapsed)
method_definition (+94 nodes collapsed)
method_definition (+198 nodes collapsed)
method_definition (+103 nodes collapsed)
method_definition (+276 nodes collapsed)
method_definition (+39 nodes collapsed)
method_definition (+617 nodes collapsed)
method_definition (+380 nodes collapsed)
method_definition (+200 nodes collapsed)
method_definition (+382 nodes collapsed)
comment "/**\n * Clipboard\n */"
method_definition
property_identifier "get_clipboard_buffer"
formal_parameters
( "("
) ")"
statement_block
{ "{"
return_statement
return "return"
member_expression
this "this"
. "."
property_identifier "clipboard_buffer"
; ";"
} "}"
method_definition
property_identifier "get_clipboard_datatype"
formal_parameters
( "("
) ")"
statement_block
{ "{"
return_statement
return "return"
member_expression
this "this"
. "."
property_identifier "clipboard_datatype"
; ";"
} "}"
method_definition (+242 nodes collapsed)
method_definition (+825 nodes collapsed)
method_definition (+70 nodes collapsed)
method_definition (+922 nodes collapsed)
method_definition (+148 nodes collapsed)
method_definition (+58 nodes collapsed)
method_definition (+108 nodes collapsed)
method_definition (+94 nodes collapsed)
comment "/**\n * File transfers and printing\n */"
method_definition (+688 nodes collapsed)
method_definition (+157 nodes collapsed)
method_definition (+88 nodes collapsed)
method_definition
property_identifier "active_file_transfers"
formal_parameters
( "("
) ")"
statement_block
{ "{"
return_statement
return "return"
member_expression
member_expression
this "this"
. "."
property_identifier "receive_chunks_in_progress"
. "."
property_identifier "size"
; ";"
} "}"
method_definition (+187 nodes collapsed)
method_definition (+602 nodes collapsed)
method_definition (+589 nodes collapsed)
method_definition (+145 nodes collapsed)
method_definition (+61 nodes collapsed)
method_definition (+124 nodes collapsed)
method_definition (+245 nodes collapsed)
method_definition (+52 nodes collapsed)
method_definition (+130 nodes collapsed)
method_definition (+366 nodes collapsed)
method_definition (+158 nodes collapsed)
method_definition (+126 nodes collapsed)
method_definition (+578 nodes collapsed)
method_definition (+43 nodes collapsed)
method_definition (+203 nodes collapsed)
} "}"

After

program
comment "/*\n * Copyright (c) 2013 Antoine Martin <antoine@xpra.org>\n "...
lexical_declaration
const "const"
variable_declarator
identifier "WORKER"
= "="
call_expression
identifier "Boolean"
arguments
( "("
member_expression
identifier "window"
. "."
property_identifier "Worker"
) ")"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "CLIPBOARD_IMAGES"
= "="
true "true"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "CLIPBOARD_EVENT_DELAY"
= "="
number "100"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "DECODE_WORKER"
= "="
binary_expression
identifier "WORKER"
&& "&&"
unary_expression
! "!"
unary_expression
! "!"
member_expression
identifier "window"
. "."
property_identifier "createImageBitmap"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "SHOW_START_MENU"
= "="
true "true"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "FILE_SIZE_LIMIT"
= "="
binary_expression
binary_expression
binary_expression
number "4"
* "*"
number "1024"
* "*"
number "1024"
* "*"
number "1024"
; ";"
comment "//are we even allowed to allocate this much memory?"
lexical_declaration
const "const"
variable_declarator
identifier "FILE_CHUNKS_SIZE"
= "="
binary_expression
number "128"
* "*"
number "1024"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "MAX_CONCURRENT_FILES"
= "="
number "5"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "CHUNK_TIMEOUT"
= "="
binary_expression
number "10"
* "*"
number "1000"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "MODAL_FOCUS"
= "="
true "true"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "TEXT_PLAIN"
= "="
string
" "\""
string_fragment "text/plain"
" "\""
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "UTF8_STRING"
= "="
string
" "\""
string_fragment "UTF8_STRING"
" "\""
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "TEXT_HTML"
= "="
string
" "\""
string_fragment "text/html"
" "\""
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "FLOAT_MENU_SELECTOR"
= "="
string
" "\""
string_fragment "#float_menu"
" "\""
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "PASTEBOARD_SELECTOR"
= "="
string
" "\""
string_fragment "#pasteboard"
" "\""
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "WINDOW_PREVIEW_SELECTOR"
= "="
string
" "\""
string_fragment "#window_preview"
" "\""
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "BELL_SOUND"
= "="
string
" "\""
string_fragment "data:audio/wav;base64,//uQRAAAAWMSLwUIYAAsYkXgoQwAEaYLWfkWgA"...
" "\""
; ";"
lexical_declaration (+54 nodes collapsed)
lexical_declaration (+88 nodes collapsed)
comment "// This option adds the CSS class .gpu-trigger to the window"...
comment "// The article at https://www.urbaninsight.com/article/impro"...
comment "// states that adding 'transform: transale3d(0,0,0);' is the"...
lexical_declaration
const "const"
variable_declarator
identifier "TRY_GPU_TRIGGER"
= "="
true "true"
; ";"
function_declaration (+79 nodes collapsed)
class_declaration
class "class"
identifier "XpraClient"
class_body
{ "{"
method_definition (+144 nodes collapsed)
method_definition (+473 nodes collapsed)
method_definition (+636 nodes collapsed)
method_definition (+1201 nodes collapsed)
method_definition (+72 nodes collapsed)
method_definition (+183 nodes collapsed)
method_definition (+115 nodes collapsed)
method_definition (+40 nodes collapsed)
method_definition (+24 nodes collapsed)
method_definition (+40 nodes collapsed)
method_definition (+24 nodes collapsed)
method_definition (+40 nodes collapsed)
method_definition (+24 nodes collapsed)
method_definition (+98 nodes collapsed)
method_definition (+24 nodes collapsed)
method_definition (+178 nodes collapsed)
method_definition (+580 nodes collapsed)
method_definition (+27 nodes collapsed)
method_definition (+48 nodes collapsed)
method_definition (+137 nodes collapsed)
method_definition (+876 nodes collapsed)
method_definition (+219 nodes collapsed)
method_definition (+61 nodes collapsed)
method_definition (+47 nodes collapsed)
method_definition (+104 nodes collapsed)
method_definition (+31 nodes collapsed)
method_definition (+64 nodes collapsed)
method_definition (+124 nodes collapsed)
method_definition (+35 nodes collapsed)
method_definition (+47 nodes collapsed)
method_definition (+126 nodes collapsed)
method_definition (+465 nodes collapsed)
comment "/**\n * Keyboard\n */"
method_definition (+668 nodes collapsed)
method_definition (+216 nodes collapsed)
method_definition (+35 nodes collapsed)
method_definition (+442 nodes collapsed)
method_definition (+286 nodes collapsed)
method_definition (+1814 nodes collapsed)
method_definition (+23 nodes collapsed)
method_definition (+23 nodes collapsed)
method_definition (+59 nodes collapsed)
method_definition (+78 nodes collapsed)
method_definition (+23 nodes collapsed)
method_definition (+120 nodes collapsed)
method_definition (+331 nodes collapsed)
method_definition (+37 nodes collapsed)
comment "/**\n * Ping\n */"
method_definition (+138 nodes collapsed)
method_definition (+132 nodes collapsed)
method_definition (+53 nodes collapsed)
method_definition (+23 nodes collapsed)
method_definition (+23 nodes collapsed)
comment "/**\n * Hello\n */"
method_definition (+130 nodes collapsed)
method_definition (+333 nodes collapsed)
method_definition (+431 nodes collapsed)
method_definition (+368 nodes collapsed)
method_definition (+92 nodes collapsed)
method_definition (+44 nodes collapsed)
method_definition (+205 nodes collapsed)
method_definition (+57 nodes collapsed)
method_definition (+140 nodes collapsed)
method_definition (+192 nodes collapsed)
method_definition (+202 nodes collapsed)
method_definition (+46 nodes collapsed)
method_definition (+68 nodes collapsed)
method_definition (+48 nodes collapsed)
method_definition (+39 nodes collapsed)
method_definition (+23 nodes collapsed)
method_definition (+362 nodes collapsed)
method_definition
property_identifier "_get_encoding_caps"
formal_parameters
( "("
) ")"
statement_block
{ "{"
return_statement
return "return"
member_expression
this "this"
. "."
property_identifier "encoding_options"
; ";"
} "}"
method_definition
property_identifier "on_first_ui_event"
formal_parameters
( "("
) ")"
statement_block
{ "{"
comment "//this hook can be overriden"
} "}"
method_definition (+41 nodes collapsed)
comment "/**\n * Mouse handlers\n */"
method_definition (+414 nodes collapsed)
method_definition (+50 nodes collapsed)
method_definition (+41 nodes collapsed)
method_definition (+310 nodes collapsed)
method_definition (+225 nodes collapsed)
method_definition (+720 nodes collapsed)
method_definition (+97 nodes collapsed)
comment "// Source: https://deepmikoto.com/coding/1--javascript-detec"...
method_definition (+133 nodes collapsed)
method_definition (+990 nodes collapsed)
method_definition (+753 nodes collapsed)
method_definition (+389 nodes collapsed)
method_definition (+55 nodes collapsed)
method_definition (+367 nodes collapsed)
method_definition (+236 nodes collapsed)
method_definition (+236 nodes collapsed)
comment "/**\n * Focus\n */"
method_definition (+576 nodes collapsed)
comment "/*\n * detect DESKTOP-type window from settings\n */"
method_definition (+99 nodes collapsed)
comment "/*\n * Show/Hide the window preview list\n */"
method_definition (+985 nodes collapsed)
comment "/*\n * Handle closing of window list if clickout outside of"...
method_definition (+202 nodes collapsed)
comment "/*\n * packet processing functions start here\n */"
method_definition
property_identifier "on_open"
formal_parameters
( "("
) ")"
statement_block
{ "{"
comment "//this hook can be overriden"
} "}"
method_definition (+60 nodes collapsed)
method_definition (+130 nodes collapsed)
method_definition (+40 nodes collapsed)
method_definition (+66 nodes collapsed)
method_definition (+40 nodes collapsed)
method_definition (+206 nodes collapsed)
method_definition (+163 nodes collapsed)
method_definition (+137 nodes collapsed)
method_definition (+162 nodes collapsed)
method_definition (+34 nodes collapsed)
method_definition (+132 nodes collapsed)
method_definition (+86 nodes collapsed)
method_definition (+33 nodes collapsed)
method_definition (+90 nodes collapsed)
method_definition (+1369 nodes collapsed)
method_definition (+215 nodes collapsed)
method_definition (+246 nodes collapsed)
method_definition (+418 nodes collapsed)
method_definition (+44 nodes collapsed)
method_definition (+889 nodes collapsed)
method_definition (+155 nodes collapsed)
method_definition (+143 nodes collapsed)
method_definition
property_identifier "on_connect"
formal_parameters
( "("
) ")"
statement_block
{ "{"
comment "//this hook can be overriden"
} "}"
method_definition (+563 nodes collapsed)
method_definition (+51 nodes collapsed)
method_definition (+503 nodes collapsed)
method_definition (+142 nodes collapsed)
method_definition (+158 nodes collapsed)
method_definition (+135 nodes collapsed)
comment "/**\n * Info\n */"
method_definition (+71 nodes collapsed)
method_definition (+64 nodes collapsed)
method_definition (+114 nodes collapsed)
method_definition (+49 nodes collapsed)
comment "/**\n * System Tray forwarding\n */"
method_definition (+309 nodes collapsed)
method_definition (+483 nodes collapsed)
method_definition (+153 nodes collapsed)
method_definition (+146 nodes collapsed)
method_definition (+128 nodes collapsed)
method_definition (+119 nodes collapsed)
method_definition (+61 nodes collapsed)
comment "/**\n * Windows\n */"
method_definition (+429 nodes collapsed)
method_definition (+425 nodes collapsed)
method_definition (+95 nodes collapsed)
method_definition (+22 nodes collapsed)
method_definition (+22 nodes collapsed)
method_definition (+65 nodes collapsed)
method_definition (+205 nodes collapsed)
method_definition
property_identifier "_process_pointer_position"
formal_parameters
( "("
identifier "packet"
) ")"
statement_block
{ "{"
lexical_declaration
const "const"
variable_declarator
identifier "wid"
= "="
subscript_expression
identifier "packet"
[ "["
number "1"
] "]"
; ";"
lexical_declaration
let "let"
variable_declarator
identifier "x"
= "="
subscript_expression
identifier "packet"
[ "["
number "2"
] "]"
; ";"
lexical_declaration
let "let"
variable_declarator
identifier "y"
= "="
subscript_expression
identifier "packet"
[ "["
number "3"
] "]"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "win"
= "="
subscript_expression
member_expression
this "this"
. "."
property_identifier "id_to_window"
[ "["
identifier "wid"
] "]"
; ";"
comment "//we can use window relative coordinates:"
if_statement
if "if"
parenthesized_expression
( "("
binary_expression
binary_expression
member_expression
identifier "packet"
. "."
property_identifier "length"
>= ">="
number "6"
&& "&&"
identifier "win"
) ")"
statement_block
{ "{"
lexical_declaration
const "const"
variable_declarator
identifier "pos"
= "="
call_expression
member_expression
identifier "win"
. "."
property_identifier "get_internal_geometry" any 2:1
arguments any 2:1
( "(" any 2:1
) ")" any 2:1
; ";"
expression_statement
assignment_expression
identifier "x"
= "="
binary_expression
member_expression
identifier "pos"
. "."
property_identifier "x"
+ "+"
subscript_expression
identifier "packet"
[ "["
number "4"
] "]"
; ";"
expression_statement
assignment_expression
identifier "y"
= "="
binary_expression
member_expression
identifier "pos"
. "."
property_identifier "y"
+ "+"
subscript_expression
identifier "packet"
[ "["
number "5"
] "]"
; ";"
} "}"
lexical_declaration
const "const"
variable_declarator
identifier "shadow_pointer"
= "="
call_expression
member_expression
identifier "document"
. "."
property_identifier "querySelector"
arguments
( "("
string
" "\""
string_fragment "#shadow_pointer"
" "\""
) ")"
; ";"
lexical_declaration
const "const"
variable_declarator
identifier "style"
= "="
member_expression
identifier "shadow_pointer"
. "."
property_identifier "style"
; ";"
lexical_declaration
let "let"
variable_declarator
identifier "cursor_url"
; ";"
lexical_declaration
let "let"
variable_declarator
identifier "w"
; ";"
lexical_declaration
let "let"
variable_declarator
identifier "h"
; ";"
lexical_declaration
let "let"
variable_declarator
identifier "xhot"
; ";"
lexical_declaration
let "let"
variable_declarator
identifier "yhot"
; ";"
if_statement (+115 nodes collapsed)
expression_statement
augmented_assignment_expression
identifier "x"
-= "-="
identifier "xhot"
; ";"
expression_statement
augmented_assignment_expression
identifier "y"
-= "-="
identifier "yhot"
; ";"
expression_statement
assignment_expression
member_expression
identifier "style"
. "."
property_identifier "width"
= "="
template_string
` "`"
template_substitution
${ "${"
identifier "w"
} "}"
string_fragment "px"
` "`"
; ";"
expression_statement
assignment_expression
member_expression
identifier "style"
. "."
property_identifier "height"
= "="
template_string
` "`"
template_substitution
${ "${"
identifier "h"
} "}"
string_fragment "px"
` "`"
; ";"
expression_statement
assignment_expression
member_expression
identifier "shadow_pointer"
. "."
property_identifier "src"
= "="
identifier "cursor_url"
; ";"
expression_statement
assignment_expression
member_expression
identifier "style"
. "."
property_identifier "left"
= "="
template_string
` "`"
template_substitution
${ "${"
identifier "x"
} "}"
string_fragment "px"
` "`"
; ";"
expression_statement
assignment_expression
member_expression
identifier "style"
. "."
property_identifier "top"
= "="
template_string
` "`"
template_substitution
${ "${"
identifier "y"
} "}"
string_fragment "px"
` "`"
; ";"
expression_statement
assignment_expression
member_expression
identifier "style"
. "."
property_identifier "display"
= "="
string
" "\""
string_fragment "inline"
" "\""
; ";"
} "}"
method_definition
property_identifier "on_last_window"
formal_parameters
( "("
) ")"
statement_block
{ "{"
comment "//this hook can be overriden"
} "}"
method_definition (+288 nodes collapsed)
method_definition (+242 nodes collapsed)
method_definition (+45 nodes collapsed)
method_definition (+78 nodes collapsed)
method_definition (+52 nodes collapsed)
method_definition (+52 nodes collapsed)
method_definition
property_identifier "_process_desktop_size"
formal_parameters
( "("
identifier "packet"
) ")"
statement_block
{ "{"
comment "//we don't use this yet,"
comment "//we could use this to clamp the windows to a certain area"
} "}"
method_definition (+220 nodes collapsed)
comment "/**\n * Notifications\n */"
method_definition (+599 nodes collapsed)
method_definition (+43 nodes collapsed)
comment "/**\n * Cursors\n */"
method_definition (+46 nodes collapsed)
method_definition (+189 nodes collapsed)
method_definition (+195 nodes collapsed)
comment "/**\n * Window Painting\n */"
method_definition (+155 nodes collapsed)
method_definition (+70 nodes collapsed)
method_definition (+257 nodes collapsed)
method_definition (+122 nodes collapsed)
method_definition (+107 nodes collapsed)
method_definition (+632 nodes collapsed)
comment "/**\n * Audio\n */"
method_definition (+611 nodes collapsed)
method_definition (+235 nodes collapsed)
method_definition (+57 nodes collapsed)
method_definition (+37 nodes collapsed)
method_definition (+827 nodes collapsed)
method_definition (+44 nodes collapsed)
method_definition (+98 nodes collapsed)
method_definition (+94 nodes collapsed)
method_definition (+198 nodes collapsed)
method_definition (+103 nodes collapsed)
method_definition (+276 nodes collapsed)
method_definition (+39 nodes collapsed)
method_definition (+617 nodes collapsed)
method_definition (+380 nodes collapsed)
method_definition (+200 nodes collapsed)
method_definition (+382 nodes collapsed)
comment "/**\n * Clipboard\n */"
method_definition
property_identifier "get_clipboard_buffer"
formal_parameters
( "("
) ")"
statement_block
{ "{"
return_statement
return "return"
member_expression
this "this"
. "."
property_identifier "clipboard_buffer"
; ";"
} "}"
method_definition
property_identifier "get_clipboard_datatype"
formal_parameters
( "("
) ")"
statement_block
{ "{"
return_statement
return "return"
member_expression
this "this"
. "."
property_identifier "clipboard_datatype"
; ";"
} "}"
method_definition (+242 nodes collapsed)
method_definition (+825 nodes collapsed)
method_definition (+70 nodes collapsed)
method_definition (+922 nodes collapsed)
method_definition (+148 nodes collapsed)
method_definition (+58 nodes collapsed)
method_definition (+108 nodes collapsed)
method_definition (+94 nodes collapsed)
comment "/**\n * File transfers and printing\n */"
method_definition (+688 nodes collapsed)
method_definition (+157 nodes collapsed)
method_definition (+88 nodes collapsed)
method_definition
property_identifier "active_file_transfers"
formal_parameters
( "("
) ")"
statement_block
{ "{"
return_statement
return "return"
member_expression
member_expression
this "this"
. "."
property_identifier "receive_chunks_in_progress"
. "."
property_identifier "size"
; ";"
} "}"
method_definition (+187 nodes collapsed)
method_definition (+602 nodes collapsed)
method_definition (+589 nodes collapsed)
method_definition (+145 nodes collapsed)
method_definition (+61 nodes collapsed)
method_definition (+124 nodes collapsed)
method_definition (+245 nodes collapsed)
method_definition (+52 nodes collapsed)
method_definition (+130 nodes collapsed)
method_definition (+366 nodes collapsed)
method_definition (+158 nodes collapsed)
method_definition (+126 nodes collapsed)
method_definition (+578 nodes collapsed)
method_definition (+43 nodes collapsed)
method_definition (+203 nodes collapsed)
} "}"