diff options
Diffstat (limited to 'kvmd/web/js/ui.js')
-rw-r--r-- | kvmd/web/js/ui.js | 6 |
1 files changed, 4 insertions, 2 deletions
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) { |