diff --git a/containment/package/contents/code/AppletIdentifier.js b/containment/package/contents/code/AppletIdentifier.js index 2f29836a..5432262f 100644 --- a/containment/package/contents/code/AppletIdentifier.js +++ b/containment/package/contents/code/AppletIdentifier.js @@ -1,231 +1,232 @@ /* * Copyright 2017-2018 Michail Vourlakos * * This file is part of Latte-Dock * * Latte-Dock is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as * published by the Free Software Foundation; either version 2 of * the License, or (at your option) any later version. * * Latte-Dock is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the * GNU General Public License for more details. * * You should have received a copy of the GNU General Public License * along with this program. If not, see . */ //! applets that havent identified properly their Latte behavior and //! create broken results when used in Latte -var blacklistedApplets = []; +var blacklistedApplets = ["org.kde.redshiftControl", + "org.kde.plasma.notifications"]; function typeOf(obj, className){ var name = obj.toString(); //if (applet.pluginName === "org.kde.plasma.kicker") //"set a plugin name to debug" // console.log(name); return ((name.indexOf(className + "(") === 0) || (name.indexOf(className + "_QML") === 0)); } function reconsiderAppletIconItem(){ if (container.appletIconItem || !applet || container.disableLatteParabolicIconHeuristics) return; //! searching to find for that applet the first IconItem //! which is going to be used in order to deactivate its active //! from our MouseArea if (applet.pluginName === "org.kde.plasma.kickoff") { identifyKickOff(); } else if (applet.pluginName === "org.kde.plasma.kicker") { identifyKicker(); } else if (applet.pluginName === "org.kde.plasma.simplemenu") { identifySimpleMenu(); } else if (applet.pluginName === "org.kde.plasma.userswitcher"&& !root.behaveAsPlasmaPanel && !container.lockZoom) { identifyUserSwitcher(); } else if (applet.pluginName === "org.kde.comexpertise.plasma.kdeconnect.sms") { identifyKdeConnectSms(); } else if (applet.pluginName === "org.kde.redshiftControl") { //blacklist } else { identifyGeneric(); } } function identifyGeneric() { if (blacklistedApplets.indexOf(applet.pluginName) >= 0) { return; } var level0 = applet.children; for(var i=0; i