Skip to content

Commit

Permalink
chore: Update window graph get icon method
Browse files Browse the repository at this point in the history
  • Loading branch information
anaximeno committed May 17, 2024
1 parent abb0ce8 commit e77e3ac
Showing 1 changed file with 6 additions and 10 deletions.
16 changes: 6 additions & 10 deletions files/usr/share/cinnamon/applets/[email protected]/applet.js
Original file line number Diff line number Diff line change
Expand Up @@ -267,18 +267,14 @@ class WindowGraph {

getIcon() {
let iconActor = null;
let app = null;

if (this.metaWindow._expoApp) {
app = this.metaWindow._expoApp;
} else {
let tracker = Cinnamon.WindowTracker.get_default();
app = tracker.get_window_app(this.metaWindow);
this.metaWindow._expoApp = app;
}
let tracker = Cinnamon.WindowTracker.get_default();
let app = tracker.get_window_app(this.metaWindow);

if (app) {
iconActor = app.create_icon_texture_for_window(this.iconSize, this.metaWindow);
iconActor = app.create_icon_texture_for_window(
this.iconSize,
this.metaWindow
);
}

if (!iconActor) {
Expand Down

0 comments on commit e77e3ac

Please sign in to comment.