diff --git a/src/extensionModules/BoxOrderManager.ts b/src/extensionModules/BoxOrderManager.ts index cfb4dbe..664d590 100644 --- a/src/extensionModules/BoxOrderManager.ts +++ b/src/extensionModules/BoxOrderManager.ts @@ -338,10 +338,14 @@ export default class BoxOrderManager extends GObject.Object { // Then get a settings identifier for the item. let itemSettingsId; - if (role.startsWith("appindicator-")) { + if (role.startsWith("appindicator-") && + (indicatorContainer.get_child() as any)?._indicator) { // If the role indicates that the item is an // AppIndicator/KStatusNotifierItem item, then handle it // differently. + // Legacy (XEmbed) tray icons added by the same extension + // also get an "appindicator-" role, but have no + // _indicator, so they're treated like any other item. try { itemSettingsId = this.#handleAppIndicatorItem(indicatorContainer, role); } catch (e) {