Skip to content

Commit

Permalink
trayIconsManager: Remove workaround on screen unmanaging
Browse files Browse the repository at this point in the history
Screen unmanaging is now supported by all the versions we care about
so there's no need to add the workaround code
  • Loading branch information
3v1n0 committed Aug 5, 2024
1 parent bdae70b commit dc9836d
Showing 1 changed file with 2 additions and 8 deletions.
10 changes: 2 additions & 8 deletions trayIconsManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,8 @@ export class TrayIconsManager extends Signals.EventEmitter {
return;

IndicatorStatusIcon.getTrayIcons().forEach(i => i.destroy());
if (this._tray.unmanage_screen) {
this._tray.unmanage_screen();
this._tray = null;
} else {
// FIXME: This is very ugly, but it's needed by old shell versions
this._tray = null;
imports.system.gc(); // force finalizing tray to unmanage screen
}
this._tray.unmanage_screen();
this._tray = null;
}

onTrayIconAdded(_tray, icon) {
Expand Down

0 comments on commit dc9836d

Please sign in to comment.