summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDevaev Maxim <[email protected]>2021-04-17 14:41:02 +0300
committerDevaev Maxim <[email protected]>2021-04-17 14:41:02 +0300
commit3a2ffcfd5c0591160333d1b347880f09eb2ee056 (patch)
tree74c51603b489e51696014d7efde8f43b8dd1b64b
parent8fdc79d67995913250b1aa27f86120da4bb87480 (diff)
fixed visibility check in showWindow
-rw-r--r--web/share/js/wm.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/share/js/wm.js b/web/share/js/wm.js
index 4b3a78a3..7e4105da 100644
--- a/web/share/js/wm.js
+++ b/web/share/js/wm.js
@@ -229,7 +229,7 @@ function __WindowManager() {
self.showWindow = function(el_window, activate=true, center=false) {
let showed = false;
- if (el_window.style.visibility === "hidden") {
+ if (!self.isWindowVisible(el_window)) {
center = true;
showed = true;
}