diff options
-rw-r--r-- | kvmd/web/js/stream.js | 2 | ||||
-rw-r--r-- | kvmd/web/js/ui.js | 6 |
2 files changed, 5 insertions, 3 deletions
diff --git a/kvmd/web/js/stream.js b/kvmd/web/js/stream.js index 7eb09ee0..baee87c1 100644 --- a/kvmd/web/js/stream.js +++ b/kvmd/web/js/stream.js @@ -91,7 +91,7 @@ function Stream(ui) { var el_stream_image = $("stream-image"); el_stream_image.style.width = __normal_size.width * __size_factor + "px"; el_stream_image.style.height = __normal_size.height * __size_factor + "px"; - ui.showWindow($("stream-window")); + ui.showWindow($("stream-window"), false); }; var __refreshImage = function() { diff --git a/kvmd/web/js/ui.js b/kvmd/web/js/ui.js index 02f83ff0..0fa2ccd3 100644 --- a/kvmd/web/js/ui.js +++ b/kvmd/web/js/ui.js @@ -70,7 +70,7 @@ function Ui(hid) { /********************************************************************************/ - self.showWindow = function(el_window) { + self.showWindow = function(el_window, raise=true) { if (!__isWindowOnPage(el_window) || el_window.hasAttribute("data-centered")) { var view = __getViewGeometry(); var rect = el_window.getBoundingClientRect(); @@ -79,7 +79,9 @@ function Ui(hid) { el_window.setAttribute("data-centered", ""); } el_window.style.visibility = "visible"; - __raiseWindow(el_window); + if (raise) { + __raiseWindow(el_window); + } }; var __isWindowOnPage = function(el_window) { |