Skip to content

Commit

Permalink
window manager: use getter for window app property
Browse files Browse the repository at this point in the history
fix #206
  • Loading branch information
jonian committed Oct 7, 2020
1 parent a2d526c commit 593dd70
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion [email protected]/window.js
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,6 @@ var MetaWindow = GObject.registerClass(
win._uniteShellManaged = true

this.win = win
this.app = WinTracker.get_window_app(win)
this.xid = getXid(win)

this.signals = new Handlers.Signals()
Expand Down Expand Up @@ -173,6 +172,10 @@ var MetaWindow = GObject.registerClass(
this.syncComponents()
}

get app() {
return WinTracker.get_window_app(this.win)
}

get hasFocus() {
return this.win.has_focus()
}
Expand Down

0 comments on commit 593dd70

Please sign in to comment.