From 9ab963fa8b665e746c6ba6e475dd1a394d3cdb63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=80=82=E7=84=B6=20=28Sauntor=29?= Date: Tue, 18 Jul 2023 13:24:32 +0800 Subject: [PATCH] Fix blockWMClass checking --- contents/code/main.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/contents/code/main.js b/contents/code/main.js index c1ac5c2..ceabae5 100644 --- a/contents/code/main.js +++ b/contents/code/main.js @@ -91,7 +91,7 @@ State.prototype.isSkippedClient = function (client) { if (GlobalSkippedClients.indexOf(resourceClass) != -1) { return true; } - var idx = this.cachedConfig.blockWMClass.indexOf(); + var idx = this.cachedConfig.blockWMClass.indexOf(resourceClass); return idx != -1; } @@ -213,7 +213,6 @@ function Main() { // log('not maximized, skip'); } log('handle added done'); - //if (!(!isMaximized || state.isSkippedClient(client) || state.isSkippedName(client))) {main.moveToNewDesktop(client);}; }, closed: function(client) {