summaryrefslogtreecommitdiff
path: root/web/share/js/wm.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/share/js/wm.js')
-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;
}