From 18d21e36217e809a50f6f9ceec7c2ad7777cabf6 Mon Sep 17 00:00:00 2001 From: Pierre Ossman Date: Thu, 24 Nov 2016 12:36:15 +0100 Subject: [PATCH] Update all state on session size change --- app/ui.js | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/app/ui.js b/app/ui.js index b78207e..e5b6f56 100644 --- a/app/ui.js +++ b/app/ui.js @@ -343,7 +343,7 @@ var UI; 'onClipboard': UI.clipboardReceive, 'onBell': UI.bell, 'onFBUComplete': UI.initialResize, - 'onFBResize': UI.updateViewDrag, + 'onFBResize': UI.updateSessionSize, 'onDesktopName': UI.updateDesktopName}); return true; } catch (exc) { @@ -1576,6 +1576,11 @@ var UI; } }, + updateSessionSize: function(rfb, width, height) { + UI.updateViewClip(); + UI.updateViewDrag(); + }, + updateDesktopName: function(rfb, name) { UI.desktopName = name; // Display the desktop name in the document title