From 3ba1d9c405575a2005ac52578e95e9ee0100f31c Mon Sep 17 00:00:00 2001 From: David Edmundson Date: Mon, 16 Jan 2017 16:12:20 +0000 Subject: [PATCH] Parse minimise all borders on the JS side Summary: Test Plan: Reviewers: Subscribers: Differential Revision: https://phabricator.kde.org/D4113 --- scripts/minimizeall/contents/code/main.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/scripts/minimizeall/contents/code/main.js b/scripts/minimizeall/contents/code/main.js index a293ec17b1..6a45b4ab5e 100644 --- a/scripts/minimizeall/contents/code/main.js +++ b/scripts/minimizeall/contents/code/main.js @@ -59,8 +59,8 @@ function init() { var borders = readConfig("BorderActivate", "").toString().split(","); for (var i in borders) { - var border = borders[i]; - if (border != "") { + var border = parseInt(borders[i]); + if (isFinite(border)) { registeredBorders.push(border); registerScreenEdge(border, minimizeAllWindows); }