Fixed multi-desktop switching problem

Ylian Saint-Hilaire committed May 15, 2020 at 13:06 UTC 9f5bce83fe5918e1df9e366a55fd1309ac70eb93
1 file changed +1 -1
views/default.handlebars
+1 -1
@@ -3356,7 +3356,7 @@
3356 p1updateInfo();
3357
3358 // Take care of KVM surfaces in desktop view mode
3359 - if (view == 3) {
3359 + if ((view == 3) && (xxcurrentView == 1)) {
3360 // Figure out and adjust the size to fill the width of the div
3361 var vsize = [{ x: 180, y: 101 }, { x: 302, y: 169 }, { x: 454, y: 255 }][Q('sizeselect').selectedIndex];
3362 //var realw = vsize.x + 2, tw = Q('xdevices').clientWidth - 30, xw = Math.floor(tw / realw);