From cd8676e62a6bc94f6999603f2a03be52f8cda820 Mon Sep 17 00:00:00 2001 From: Michail Vourlakos Date: Thu, 5 Apr 2018 14:57:23 +0300 Subject: [PATCH] blacklist from applet from heuristics --blacklist "com.github.zren.presentwindows" from Latte heuristics in order to work correctly with it. --- containment/package/contents/code/AppletIdentifier.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/containment/package/contents/code/AppletIdentifier.js b/containment/package/contents/code/AppletIdentifier.js index 43d9b1d49..45f29cd73 100644 --- a/containment/package/contents/code/AppletIdentifier.js +++ b/containment/package/contents/code/AppletIdentifier.js @@ -1,4 +1,6 @@ +var blacklistedApplets = ["com.github.zren.presentwindows"]; + function typeOf(obj, className){ var name = obj.toString(); //if (applet.pluginName === "org.kde.plasma.kicker") //"set a plugin name to debug" @@ -32,6 +34,10 @@ function reconsiderAppletIconItem(){ } function identifyGeneric() { + if (blacklistedApplets.indexOf(applet.pluginName) >= 0) { + return; + } + var level0 = applet.children; for(var i=0; i