Detect visibility correctly

This commit is contained in:
Tor Hedin Brønner
2018-06-25 16:50:44 +02:00
parent 1262e73a6c
commit 81e6be9a2c
+2 -2
View File
@@ -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;
}