/* SPDX-FileCopyrightText: 2017-2018 Michail Vourlakos SPDX-License-Identifier: GPL-2.0-or-later */ //! applets that haven't identified properly their Latte behavior and //! create broken results when used in Latte var blacklistedApplets = ["org.kde.redshiftControl", "org.kde.plasma.notifications", "menuZ"]; 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 (communicator.appletIconItem || !applet || communicator.indexerIsSupported) 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.notes") { identifyNotes(); } else if (applet.pluginName === "org.kde.plasma.simplemenu") { identifySimpleMenu(); } else if (applet.pluginName === "org.kde.plasma.userswitcher") { identifyUserSwitcher(); } else if (applet.pluginName === "org.kde.comexpertise.plasma.kdeconnect.sms") { identifyKdeConnectSms(); } else if (applet.pluginName === "org.kde.redshiftControl") { //blacklist } else { identifyGeneric(); } } function checkAndUpdateAppletRootItem() { if (appletDiscoveredRootItem || communicator.indexerIsSupported) { return; } var level0 = applet.children; for(var i=0; i= 0) { return; } var level0 = applet.children; for(var i=0; i