From 81e6be9a2c5a858eef4da09efbcd581762b42d4d Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tor=20Hedin=20Br=C3=B8nner?= Date: Sun, 24 Jun 2018 00:34:19 +0200 Subject: [PATCH] Detect visibility correctly --- tiling.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tiling.js b/tiling.js index 15d25d4..983378d 100644 --- a/tiling.js +++ b/tiling.js @@ -1163,8 +1163,8 @@ function fixColumn(space, index, x, y, onComplete) { // Check if the window is fully visible let visible = true; - if (x < stack_margin - || x + frame.width > space.width - stack_margin) { + if (x + frame.width < stack_margin + || x > space.width - stack_margin) { visible = false; }