We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 42aa43c commit e26056fCopy full SHA for e26056f
anyvm.py
@@ -660,8 +660,9 @@ def fatal(msg):
660
661
const setEncodings = new Uint8Array([
662
2, 0,
663
- 0, 1,
664
- 0, 0, 0, 0
+ 0, 2,
+ 0, 0, 0, 0,
665
+ 255, 255, 255, 33 // DesktopSize pseudo-encoding (-223)
666
]);
667
ws.send(setEncodings);
668
@@ -699,6 +700,11 @@ def fatal(msg):
699
700
const h = view.getUint16(6);
701
const enc = view.getInt32(8);
702
offset += 12;
703
+
704
+ if (enc === -223) { // VM resolution changed
705
+ location.reload();
706
+ return;
707
+ }
708
709
// Detect VM software cursor by looking for small updates near host mouse position
710
if (isCheckingCursor && !cursorDetected) {
0 commit comments