From 9f5bce83fe5918e1df9e366a55fd1309ac70eb93 Mon Sep 17 00:00:00 2001 From: Ylian Saint-Hilaire Date: Fri, 15 May 2020 13:06:50 -0700 Subject: [PATCH] Fixed multi-desktop switching problem --- views/default.handlebars | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/views/default.handlebars b/views/default.handlebars index 37711745..3731af89 100644 --- a/views/default.handlebars +++ b/views/default.handlebars @@ -3356,7 +3356,7 @@ p1updateInfo(); // Take care of KVM surfaces in desktop view mode - if (view == 3) { + if ((view == 3) && (xxcurrentView == 1)) { // Figure out and adjust the size to fill the width of the div var vsize = [{ x: 180, y: 101 }, { x: 302, y: 169 }, { x: 454, y: 255 }][Q('sizeselect').selectedIndex]; //var realw = vsize.x + 2, tw = Q('xdevices').clientWidth - 30, xw = Math.floor(tw / realw);